Hi, In a web application of mine, I am having a form and in that form, textfields(<input type "text"> are created dynamically based on parameters passed from another program. The user fills in values. The common thing among these textfields are they have their names starting with "tfDyn". After the user fills in values, and on submission of the form a servlet is called that is supposed to do some processing based upon the submitted form. My question is,in the servlet, is it possible to get the names and values of the textfields, those that were generated at runtime... if yes, how..or else is there any other way to achieve the same..
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." <br />Linus Torvalds
Perhaps this is what you are looking for where paramName should be the the name of your text field in the HTML form. Remember to give the same name to all the textFields what ever the number you have dynamically created.
Joined: Sep 08, 2005
Thanks Aslam But if I give all the text fields the same name, I wont be able to sort out which value belongs to which text field, since they are unique values which need to processed uniquely,depending on the name of the textfield. I am trying my luck right now, with request.getParameterMap() on this one.