portals-pluto-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry lee <SpiritSeek...@sqatester.com>
Subject Re: Passing parameters to JSP with PortletRequestDispatcher doesn't work.
Date Sat, 12 Feb 2005 04:35:18 GMT
<html><body><P><FONT face="Arial, Helvetica, sans-serif" size=2>Hi
Dave,</FONT><FONT style="FONT-FAMILY: arial,helvetica,sans-serif"></P>
<P>&nbsp;&nbsp;&nbsp; i guess&nbsp;if&nbsp;u add code below&nbsp;to
your portlet code, then&nbsp;try it again with clicking the portlet URL u created:</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PortletURL purl=response.createRenderURL();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pw.println("&lt;a
href=\""+ purl.toString() +"\"&gt;click&lt;/a&gt;&lt;BR&gt;");</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; And&nbsp;u can get the all parameters.
i think&nbsp;it's a bug.<BR><FONT size=2>&nbsp;</FONT></P>
<P><FONT size=2>regards,<BR>Terry</FONT></FONT><FONT style="FONT-FAMILY:
arial,helvetica,sans-serif"><BR><BR><FONT size=2>--- Dave Glasser &lt;dglasser@pobox.com&gt;
wrote:<BR><BR>From: Dave Glasser &lt;dglasser@pobox.com&gt;<BR>Date:
Sun, 23 Jan 2005 17:48:44 -0800 (PST)<BR>To: pluto-user@portals.apache.org<BR>Subject:
Passing parameters to JSP with PortletRequestDispatcher doesn't work.<BR><BR>According
to PLT.16.1.1, Query Strings in Request Dispatcher Paths,<BR><BR>"The getRequestDispatcher
method of the PortletContext that creates<BR>PortletRequestDispatcher objects using
path information allows the<BR>optional attachment of query string information to the
path. For<BR>example, a Developer may obtain a PortletRequestDispatcher by using the<BR>following
code:<BR><BR>String path = "/raisons.jsp?orderno=5";<BR>PortletRequestDispatcher
rd = context.getRequestDispatcher(path);<BR>rd.include(renderRequest, renderResponse);<BR><BR>Parameters
specified in the query string used to create the<BR>PortletRequestDispatcher must be
aggregated with the portlet render<BR>parameters and take precedence over other portlet
render parameters of<BR>the same name passed to the included servlet or JSP... " etc.<BR><BR>Anyway,
I'm trying to do this, and using the example above to<BR>illustrate, I'm seeing no parameters
at all inside raisons.jsp.<BR>request.getParameter("orderno") returns null,<BR>request.getParameterNames()
returns an empty enumeration, and what's<BR>really wierd is that request.getQueryString()
returns "orderno=5" as<BR>you would expect.<BR><BR>I'm using Pluto 1.0.1-rc1.
Is this a known bug? Has anyone passed<BR>parameters to a JSP in this way successfully?<BR><BR><BR></P></FONT></FONT><br>&nbsp;<br><hr>Join
SQAtester.com Community  ---&gt; http://www.sqatester.com/testersarea/joinus.htm<br></body></html>

View raw message