Nikola Milutinovic wrote:
>>>String searchFields[] = request.getParameterValues("searchField");
>>>String searchFieldValue = searchFields[1]; 
>>>
>>>I should be able to just do:
>>>String searchFieldValue = request.getParameter("searchField");
>>>
>>>
>>>Why would I be getting an array with two values?  I was able to get the form
>>>to work if it was the only thing in the jsp, so I believe there is something
>>>external to the form being picked up as an additional parameter, but I can't
>>>figure it out.  Any ideas?
>>
>>Yes, the spec was undefined about that, and there was no test in the 
>>reference test suite either. It got "standardized" on Tomcat 4.1, in the 
>>end (as I understand it).
> 
> 
> So, just to clarify, it is "getParameterValues" giving *values*, wich is a plural 
>and thus returned as an array? You can have several fields with the same name, so I 
>guess it should be an array...

Yes, if the request was containing multiple headers with the same name, 
like:

HeaderA: foo
HeaderB: bar, blah

will return { "foo", "bar, blah" }

No comma parsing is done anymore (this is back to what was done by 
Tomcat 3.3, AFAIK).

Remy


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to