You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "David DeWolf (JIRA)" <pl...@jakarta.apache.org> on 2005/02/15 23:05:48 UTC

[jira] Commented: (PLUTO-42) control.getPIDValue(); always returns "", PORTLET_ID is never set

     [ http://issues.apache.org/jira/browse/PLUTO-42?page=comments#action_59227 ]
     
David DeWolf commented on PLUTO-42:
-----------------------------------

The ServletRequestImpl does in fact return the parameters whenever an action request targets the specified portlet.  Under these circumstances, the PID is properly set.  The PID is basically "the id of the portlet targeted by the last portlet request".

That said, the problem of the PortletRequestDispatcher is NOT properly aggregating query parameters which have been programatically appended to the path to the render parameters which allready exist.

This should be looked into further.



> control.getPIDValue(); always returns "", PORTLET_ID is never set
> -----------------------------------------------------------------
>
>          Key: PLUTO-42
>          URL: http://issues.apache.org/jira/browse/PLUTO-42
>      Project: Pluto
>         Type: Bug
>   Components: portal driver
>     Versions: unspecified
>  Environment: Operating System: Windows NT/2K
> Platform: Other
>     Reporter: Prerana
>     Priority: Critical

>
> control.getPIDValue() always returns "", as a result, 
> ServletRequestImpl::getParameterMap never returns the HttpServletParameters. 
> file:
> jakarta-pluto/portal/src/java/org/apache/pluto/portalImpl/servlet/ServletRequestImpl.java
> method: getParameterMap()
> line: 90 
> code snip :
>         String pid = control.getPIDValue();
>         String wid = portletWindow.getId().toString();
>         if (pid.equals(wid)) { ... get super.parameterMap ... }
> The condition pid.equals(wid) never succeeds because pid is "". Hence the code
> inside this if-block is never executed.
> My problem is that though I can (in debugger) see my required parameters in the
> request object, I do not get the parameter when I do a req.getParameter in my
> SERVLET code. The reason, these parameters would be returned in the param Map if
> the code inside 'if (pid.equals(wid))' would get executed which never happens
> because the "pid" is never set.
> I am basically trying to pass a parameter defined as init-param into the servlet
> code. Is there a workaround?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira