DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29777>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29777 HttpServletRequest#getParameterNames problem [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Platform|All |Sun Resolution|WORKSFORME | Summary|getParameterNames problem |HttpServletRequest#getParame | |terNames problem ------- Additional Comments From [EMAIL PROTECTED] 2004-06-28 06:19 ------- I have not tested this with the latest version of the Tomcat4 source (from CVS) yet. But this problem is Solaris only? It did not occur in Windows (same version as Solaris). [test servlet] public class testServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { printOutput(response, "test" + "<BR>"); Enumeration enum = request.getParameterNames(); if(enum != null) { Object obj = null; while(enum.hasMoreElements()) { obj = enum.nextElement(); printOutput(response, obj.toString() + "<BR>"); } }; printOutput(response, "test2" + "<BR>"); } protected void printOutput(HttpServletResponse response, String str) { try { PrintWriter out = response.getWriter(); out.print(str); } catch (Exception e) { e.printStackTrace(); }; } } [web.xml] <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>test</servlet-name> <servlet-class>test.testServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>test</servlet-name> <url-pattern>/test</url-pattern> </servlet-mapping> </web-app> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]