473,322 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

input from a text box

devikacs
I am trying to input a set of text values to a form.i am using jsp. I would like to store them in say a list or array. is it possible to do that?
May 27 '08 #1
5 1621
hsriat
1,654 Expert 1GB
I am trying to input a set of text values to a form.i am using jsp. I would like to store them in say a list or array. is it possible to do that?
Every thing is possible. But can I get some details?
May 27 '08 #2
Every thing is possible. But can I get some details?
Ya. I need some textboxes.. the number of textboxes is dynamic. So right now, i have put them in a loop and called them text1,text2,etc

SO jsp puts the values in sepearate strings, text1,text2,etc.. Would it be possible to change this to an array or list..
May 28 '08 #3
hsriat
1,654 Expert 1GB
Ya. I need some textboxes.. the number of textboxes is dynamic. So right now, i have put them in a loop and called them text1,text2,etc

SO jsp puts the values in sepearate strings, text1,text2,etc.. Would it be possible to change this to an array or list..
Don't name them as text1, text2.... instead, name all of them as text[].
May 28 '08 #4
Don't name them as text1, text2.... instead, name all of them as text[].
I tried doing this, but it did not work..
<td><input type='text' name=<%="text["+i+"]"%> disabled ></td>

which is why i changed it to
<td><input type='text' name=<%="text"+i%> disabled ></td>
May 28 '08 #5
hsriat
1,654 Expert 1GB
I tried doing this, but it did not work..
<td><input type='text' name=<%="text["+i+"]"%> disabled ></td>

which is why i changed it to
<td><input type='text' name=<%="text"+i%> disabled ></td>

Don't use jsp in between... just leave all the inputs look like [HTML]
<input type="text" name="text[]" disabled >[/HTML]
May 28 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: gotcha | last post by:
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change...
3
by: david | last post by:
HI! Im trying to make "HTML form" into automatic. 1. If I get 18 numbers like: A B C D E F . . . . 2. How can I put those 18 numbers automatically into 6 numbers format like: A B C D E F
4
by: j.t.w | last post by:
Hi All. I'm having a problem with my Date of Birth textbox. When I open the ..htm file, the "DoB" textbox is flat with a border. All of my other textboxes are sunken and are yellow. When I...
12
by: Susan Cranford | last post by:
Please forgive, I have looked at so much info I can't figure out how to put it together even though I know it must be fairly simple. I have an array of input text boxes (txtDOBn) where n is...
12
by: Randell D. | last post by:
Folks, I have a form called "ourTestForm". Its a test form - nothing special - it contains five input tags - they are named one, two, three, four and five. The input tags are of type...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
3
by: cbradio | last post by:
Hi, I am having trouble developing a form in a restricted environment. My sample code is found below my message (sorry I don't have a URL). Basically, without a doctype, the form displays properly...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
10
omerbutt
by: omerbutt | last post by:
hi there i am working on an inventory rpoject and for that i have made a stock entry form which is pasted below,I have included this form in the main Add Stock page, having the following inputs to be...
2
by: Abneo | last post by:
Hi all, I am very new to Javascript and I am in some need of some help. I am creating a site that has a madlib. I got the madlib code but now I want the results of the madlib to display in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.