tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46652] New: HttpServletRequest.getQueryString() always returns null
Date Mon, 02 Feb 2009 22:43:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46652

           Summary: HttpServletRequest.getQueryString() always returns null
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: java@leeclemens.net


request.getQueryString() in a JSP always returns null.

To reproduce:

Create test JSP page, test.jsp, with scriptlet

<%
    String qryStr = request.getQueryString();
    if (qryStr==null) {
        out.writeln("Query String is null!);
    } else {
        out.writeln("Query String is: " + qryStr);
    }
%>

Type "http://<server>/<context>/test.jsp?a=1&b=2" in your browser (IE 6 SP2)

Query String is null! is displayed


Expected result:

Query String is: a=1&b=2


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message