> > 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...

Nix.


Reply via email to