Is it possible to get the value in the servlet of a text field in HTML which doesn't have a name.
<input type="text" size="30" maxchars="30">
If i give the above in html a textfield is appearing. But if i want to retrieve the value entered using servlet how do i do that??
You can try the java.util.Enumeration getParameterNames() of the ServletRequest interface and see what is returned from a no-name INPUT... Probably nothing.
Originally posted by Tony Alicea:
You give the <INPUT> a NAME="..." attribute and value. What's preventing you from doing it that way? Then use request.getParameter(...) to retrieve the String value of the INPUT element.
You can try the [b]java.util.Enumeration getParameterNames() of the ServletRequest interface and see what is returned from a no-name INPUT... Probably nothing. [/B]
With any luck, after this is done, submitting the troublesome form should also submit the newly named fields.
Is this any help?