cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <>
Subject Re: XSP : get and modify URL
Date Wed, 30 Apr 2003 10:26:03 GMT
The URL parameter is coming from an XML file ?

for example : <url>new_page?myID=5</url>
or <url>new_page</url> and he parameter is appending after.

Here is how I get the url parameters to create a new URL with an XSP :

<xsp:page xmlns:xsp=""



Enumeration enum = request.getParameterNames();
Vector tempVector = new Vector();
         while (enum.hasMoreElements()) {
Vector values = new Vector(tempVector.size());

for (int i = 0; i  &lt; tempVector.size(); i++) {

  values.addElement(request.getParameter((String) tempVector.elementAt(i)));

         <link>search?<xsp:logic>for(int i=0;i &lt; 

&lt; values.size()-1){</xsp:logic>&amp;<xsp:logic>}}</xsp:logic>

But this XSP create an new URL. the thing is that you want to get the url 
dynamically like in an xsl.

You may also create an xsl stylesheet and put some xsp tag in it.

Anyway, I hope my example can give you some hints.


At 11:45 30/04/2003 +0200, you wrote:
>On a page I have a URL like : new_page?myID=5
>and I want to have an href with -> new_page.beta?myID=5
>How can I do this???
>Thanks a lot
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message