You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/05/01 08:27:13 UTC
XSP : get the URL parameters
Hello,
I want to get the parameters from my address. Not only the value of a
parameter like :
abc/hello?ID=12 and catch the "12", but I want to get everything after
the "?" (ID=12)
Is that possible?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: XSP : get the URL parameters
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Hi:
I XSP you can taje advantage of xsp-request:get-query-string
For more info:
http://xml.apache.org/cocoon/userdocs/xsp/request.html
Best Regards,
Antonio Gallardo
> Hello,
> I want to get the parameters from my address. Not only the value of a
> parameter like :
> abc/hello?ID=12 and catch the "12", but I want to get everything after
> the "?" (ID=12)
>
> Is that possible?
> Thanks
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: XSP : get the URL parameters
Posted by Stavros Kounis <go...@osmosis.gr>.
the best way is to use RequestParamAction that makes available all this
parameter in sitemap
the other way is to use a java code in your .xsp page (the part from
RequestParamAction that get all parameteres will work in your xsp page)
.
.
Enumeration e=request.getParameterNames();
while(e.hasMoreElements()){
String name =(String) e.nextElement();
String value = request.getParameter(name)
}
.
.
--stavros
On Thu, 1 May 2003 Maxime.Gheysen@swisscom.com wrote:
> Hello,
> I want to get the parameters from my address. Not only the value of a
> parameter like :
> abc/hello?ID=12 and catch the "12", but I want to get everything after
> the "?" (ID=12)
>
> Is that possible?
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org