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/03/10 07:02:55 UTC

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

     [ http://issues.apache.org/jira/browse/PLUTO-42?page=history ]
     
David DeWolf resolved PLUTO-42:
-------------------------------

    Resolution: Fixed

Resolved. . .The PortletRequestDispatcher now parses the path and appends any queryParameters to the parameterMap.  Added a test to the testsuite for this issue.

> 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