Or you can let Turbine get the parameters for you.
Turbine gets all query params and post params and puts them in a
parameters collection, you can get a parameter by name :
String name = rundata.getParameters().getString("username");
http://www.bluesunrise.com/jetspeed-docs/turbine-2001-1124-javadocs/org/
apache/turbine/util/RunData.html#getParameters()
> -----Original Message-----
> From: KARTHIKEYAN E S [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 9:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: detect URL parameters in portlets
>
>
> Let us assume 'p' is the parameter you need to pass in the
> query string and grabbed, let 'rundata' be intance of Rundata class.
>
> HttpServletRequest req = rundata.getRequest();
> String p = req.getParameter("p");
>
> with regards
> E.S.Karthikeyan
>
>
>
>
> -----Original Message-----
> From: Casimiro Lovato-Winston
> To: Jetspeed user mailing list
> Sent: 6/13/02 2:10 AM
> Subject: detect URL parameters in portlets
>
> How can you grab URL parameters in portlets? I want ot be
> able to write a portlet that can detect if parameters are
> passed on the querystring and take action based on what it
> finds (usually a URL). Can I get servlet like functionality
> from the RunData class to do this?
>
> Thanks,
> Casey
>
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>