DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18141>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18141

Multiple parameter values are disregarded on CGI POST

           Summary: Multiple parameter values are disregarded on CGI POST
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlets:CGI
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The CGI Servlet implementation in 4.1.18 does not allow multiple values per
request parameter. This is only true for the post operation as the get operation
does not make use of the CGIRunner.params hashtable.

This means the following form cannot be submitted correctly if more than one
option is selected:
<form action="/cgi-bin/mycgi.pl" method="post">
<select name="bigsel" size="5" multiple="multiple">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</form>

Selecting 1 and 2 generates a bigsel=1&bigsel=2 request but only the bigsel=1
association is saved in the params hashtable.

The params hashtable should save a String[] of all values instead of a simple
String of the first value.

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

Reply via email to