cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alec Bickerton (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2196) Request parameters are lost if the Request is an instance of JSPEngineServletRequest
Date Fri, 11 Apr 2008 09:16:06 GMT
Request parameters are lost if the Request is an instance of JSPEngineServletRequest
------------------------------------------------------------------------------------

                 Key: COCOON-2196
                 URL: https://issues.apache.org/jira/browse/COCOON-2196
             Project: Cocoon
          Issue Type: Bug
          Components: * Cocoon Core
    Affects Versions: 2.1.9
            Reporter: Alec Bickerton


Our application has many different paths into the busiiness logic. Sometimes a method is called
from an sitemap action, other times from a jsp controller and sometimes from a .xsl file.

We  have noticed an issue where calls from JSPs, are unable to access the request parameters
which causes a Nullpointer to be thrown.

The code from JSPEngineServletRequest
    public java.lang.StringBuffer getRequestURL() { return null; }
    public java.util.Map getParameterMap() { return null; }

Was there some design decision that means this always has to return null instead of passing
the request to the underlying request.

Here's the workaround that's being used by us. It would be nice to not have to do this though.

Map<String, String> params = request.getParameterMap();
//WORK AROUND FOR UN IMPLEMENTED METHOD
if( request instanceof JSPEngineServletRequest )
    params = URLParameters.parse( request.getQueryString() ); // Parse the parameters from
the query string using the helper class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message