You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/06/27 09:59:40 UTC

DO NOT REPLY [Bug 45294] New: jsp request.getParameter() returns null if page directive sets contentType to application/ x-java-jnlp-file

https://issues.apache.org/bugzilla/show_bug.cgi?id=45294

           Summary: jsp request.getParameter() returns null if page
                    directive sets contentType to application/x-java-jnlp-
                    file
           Product: Tomcat 6
           Version: 6.0.16
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sdoyle@gmail.com
                CC: sdoyle@gmail.com


If a jsp has a page directive of the following form
<%@ page contentType="application/x-java-jnlp-file" %> 
then all request.getParameter() calls return null. Other calls to request (like
request.getMethod() ) work correctly.

Example URL: 

http://localhost:8090/DDL/app/ddl.jsp?DICOMRemoteAETitle=Remote&DICOMRemoteDicomPort=3001&DICOMRemoteHost=radworkstation.hospital.edu&DICOMLocalAETitle=MCDICOM&DICOMLocalDicomPort=3002

The request.getMethod() correctly returns GET.

If I leave out the page directive the request.getParameter() methods return
correct values.

When I look at the generated Java code - the only difference is in the call to
setContentType()

<       response.setContentType("application/x-java-jnlp-file");
---
>       response.setContentType("text/html");

So - it's something happening at runtime. Shouldn't all GET methods have
request.getParameter() treated identically no matter what the output
contentType is?


-- 
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


DO NOT REPLY [Bug 45294] jsp request.getParameter() returns null if page directive sets contentType to application/ x-java-jnlp-file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45294


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-06-27 15:03:25 PST ---
This works for me. There would appear to be some other issue at play.

Please use the users list to help you debug this issue.


-- 
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