On 01/26/2010 06:15 PM, Scott O'Bryan wrote:
Would this not be the same at the RequestParamMap in the Portlet
Request? I mean, there is no gaurentee, by spec, that the query string
is what you expect it to be.
>
> Scott
IMO: No and yes to the above two statements.
The PortletRequest parameter map will (by spec) only provide your with the
query string parameters as targeting the portlet itself.
No other parameters should and will be provided to the portlet.
Note: with Portlet 2.0, this might also included shared parameters, but this still isn't the same as (all) the query string parameters in
the URL.
However, if you're willing to leverage pluto specific (e.g. proprietary to the container/portal implementation) API, there are ways to
access the full client *Servlet* request parameter map.
If you are developing standard portlets or targeting a solution which should also work on portlet containers however, you should stick to
the Portlet API only and accept the above limitation (there are good reasons why you shouldn't want/need to access the underlying Servlet
API directly). There might even be other ways to solve your functional needs which stick to the spec. but you'll have to explain them for us
to be able to advise you in that.
If you really want to use the Pluto specific API it'll depends on which version of Pluto you're using (1.x and 2.x having a completely
different container implementation).
BTW, Jetspeed Portal (which uses the Pluto container) provides an additional/optional configuration which removes the above described
restriction (per portlet if needed) thus providing all query string parameters on the URL on a PortletRequest parameter map, without need to
use Jetspeed specific API. That still isn't portable to other portals but at least you don't need to use a proprietary API to leverage it.
Regards,
Ate
On 01/23/2010 02:29 PM, zzkhan wrote:
Hi, I need to access query string parameters which are in the URL used to
access the portal page on which my portlet is rendered. Essentially, I am
after the Request Param Map object in the HttpServletRequest. Is there
anyway in pluto I can do this?
Thanks.