• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameterValues []

 
Brian Nice
Ranch Hand
Posts: 195
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic