Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes How to display values in my form if I have two textboxes of same name... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to display values in my form if I have two textboxes of same name..." Watch "How to display values in my form if I have two textboxes of same name..." New topic
Author

How to display values in my form if I have two textboxes of same name...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944

Now how do I save the values of the input elements here
In my case i have two text boxes with the same name
how do I display the values entered in this form once again as a table.
Help me please I am novice programmer..
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
in Jsp receive the parameters using getParameter() method and design the same form as in HTML.to the value attribute assign the value returned by getparameter().
thanks
Andy Page
Greenhorn

Joined: Jul 29, 2002
Posts: 21
How will I save the value of... for eg
nlocsc
I have two textboxes(nlocsc) one for graduate and for college
They are going to be two diffeerent values but the name of the
box is nlocsc.
How should I go about displaying the data?
How should I write my bean then?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
You can call the fields in a form anything you like. The name is only used by the form and the servlet which parses it. Why not call the college one "college_nlocsc" and the other one "graduate_nlocsc" ?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display values in my form if I have two textboxes of same name...
 
Similar Threads
My bean doesn't quite work
Horizontal scrollbar problem
raw HTML in Mozilla
Help requested
save checked value in checkbox to database