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 "Dave Glasser (JIRA)" <pl...@jakarta.apache.org> on 2005/01/24 14:35:17 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_58009 ]
     
Dave Glasser commented on PLUTO-42:
-----------------------------------

As Prerana pointed out in the opening comment, this bug completely breaks compliance with PLT.16.1.1. Passing parameters to a servlet or JSP seems like a critical piece of functionality to me. I think this should have a priority higher than minor.



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

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