• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic parameter

 
Smitha Prasad
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi how do i get the value of a list in a jsp. the getparametersvalue() is supposed to return the corresponding string vector.. but it is returning a null value. help!! :roll:
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a form that generates parameters where the same name is associated with multiple values, you want the getParameterValues( "name" ) (note the plural) method. It returns an array of String, not a vector.
You should still get one value with getParameterValue("name") - a null means there is no parameter of that name.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!