>Number: 4207 >Category: mod_jserv >Synopsis: getParameterValues not working in SSI >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Apr 7 09:10:01 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: >Environment:
os - WINNT Apache 1.3.4 Jserv 1.0 >Description: I tried using HttpServletRequest.getParameterValues() with a SSI servlet, it gave me only the last value for a parameter instead of giving the array of values >How-To-Repeat: <SERVLET CODE=xyzServlet> <PARAM NAME=pnameVALUE=xyz> <PARAM NAME=pname VALUE=abc> </SERVLET> xyzServlet::doGet(req,resp) { //get the servletoutstream , set content type . . . String pname[] = req.getParameterValues("pname"); for (int i=0;i<pname.length;i++) { getServletContext.log ("Got pname("+i+") :"+pname[i]); } } the relevant part of log Got pname(0) : abc >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]