This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameterValues []

 
Brian Nice
Ranch Hand
Posts: 195
  • 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