File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes getParameterValues [] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getParameterValues []" Watch "getParameterValues []" New topic
Author

getParameterValues []

Brian Nice
Ranch Hand

Joined: Nov 02, 2000
Posts: 195
if you have five columns in an html table with text fields named col1, col2, col3, col4, and col5, and 3 rows in a table and all the values get submitted to a servlet or jsp, when you retrieve the form values using geParameterValues("col1"), getParameterValues("col2") and so forth, is there any guarantee that string arrays returned by the above method store all the fields in a row in the same array index?
So if I want the values from the text fields in row1, I can be guaranteed that they are col1[0], col2[0], col3[0], col4[0] and col5[0] and NOT col1[0], col2[2], col3[1] etc...
Hope that makes sense
Thanks
Brian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getParameterValues []