You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Dave Glasser <dg...@pobox.com> on 2005/01/24 02:48:44 UTC
Passing parameters to JSP with PortletRequestDispatcher doesn't work.
According to PLT.16.1.1, Query Strings in Request Dispatcher Paths,
"The getRequestDispatcher method of the PortletContext that creates
PortletRequestDispatcher objects using path information allows the
optional attachment of query string information to the path. For
example, a Developer may obtain a PortletRequestDispatcher by using the
following code:
String path = "/raisons.jsp?orderno=5";
PortletRequestDispatcher rd = context.getRequestDispatcher(path);
rd.include(renderRequest, renderResponse);
Parameters specified in the query string used to create the
PortletRequestDispatcher must be aggregated with the portlet render
parameters and take precedence over other portlet render parameters of
the same name passed to the included servlet or JSP... " etc.
Anyway, I'm trying to do this, and using the example above to
illustrate, I'm seeing no parameters at all inside raisons.jsp.
request.getParameter("orderno") returns null,
request.getParameterNames() returns an empty enumeration, and what's
really wierd is that request.getQueryString() returns "orderno=5" as
you would expect.
I'm using Pluto 1.0.1-rc1. Is this a known bug? Has anyone passed
parameters to a JSP in this way successfully?