cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alec Bickerton (JIRA)" <>
Subject [jira] Issue Comment Edited: (COCOON-2196) Request parameters are lost if the Request is an instance of JSPEngineServletRequest
Date Fri, 06 Mar 2009 10:32:01 GMT


abickerton_minick edited comment on COCOON-2196 at 3/6/09 2:30 AM:


Has this issue been looked at by anyone of the commiters?

      was (Author: abickerton_minick):
> Request parameters are lost if the Request is an instance of JSPEngineServletRequest
> ------------------------------------------------------------------------------------
>                 Key: COCOON-2196
>                 URL:
>             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
> 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
> Map<String, String> params = request.getParameterMap();
> 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.

View raw message