Forums Register Login

Dynamic parameter

+Pie Number of slices to send: Send
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:
+Pie Number of slices to send: Send
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
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1028 times.
Similar Threads
Unable to access ArrayList values from JSP
Not getting request parameters
declaring a new Vector
Java Database Applet
where is my silly mistake
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:36:49.