aspose 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 Spring in Action this week in the Spring 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 []