A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
reading a form field.
Joined: Jul 26, 2005
Feb 06, 2006 16:36:00
this might be very trivial...
i am trying to read the values entered in textboxes which are created dynamically in the jsp as say....
<INPUT type="text" name=txtSample<%=count%> >
if count assumes the values 1 thru 10...i am not able to read the values in the textboxes using request object in my
request.getParameter("txtSample1"); is returning null.
Author and ninkuma
Joined: Jan 10, 2002
Feb 06, 2006 17:28:00
is sent to the browser, do a View Source and make sure that the HTML is well-formed and what you expect.
Once mistake I can see is that you are not quoting the name attribute. This can cause subtle problems.
[ February 06, 2006: Message edited by: Bear Bibeault ]
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: reading a form field.
alternate to jsp:declaration
is there anything like formpost in jsp?
Garbage Values in TextBoxes
<h:inputText tag in JSF not updating the managed bean values when attribute is readonly=true.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014