on 10/1/2000 6:22 PM, "Oki DZ" <[EMAIL PROTECTED]> wrote:

> I wanted to capture HTML Select values the other day. I had some
> difficulties. I tried to use myParameterParser.getStrings("myselectname"),
> but it didn't work. I had to use the following:
> 
> // lo tech code begin
> HttpServletRequest req = data.getRequest();
> String[] selectValues = req.getParameterValues("myselectname");
> // lo tech code end
> 
> It seems that the problem lies on the usage of Hashtable in the
> ParameterParser. As far as I know, Hashtables would override the previous
> values if you put new values which have the same keys as the previous
> values' keys. So that using getStrings() you can only get the first values
> of HTML forms "objects" which have multiple values; eg: in a <select
> multiple> tag. 

Read the source code to ParameterParser more carefully. You are totally
incorrect with your assumption about the Hashtable and you will see that if
you read the source code.

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to