cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjetil Kjernsmo <Kjetil.Kjern...@computas.com>
Subject Re: Getting the request query parameters in the XML
Date Thu, 27 Mar 2008 15:31:19 GMT
On Thursday 27 March 2008 15:40:39 Reinhard Poetz wrote:
> You could use JXTemplate here:
>
>   <jx:forEach var="p" select="${cocoon.request.getParameterNames()}">
>     <p>${p}=${cocoon.request.getParameter(p)}</p>
>   </jx:forEach>

Ah, thanks, I think that's the nearest to what I was looking for, even though 
Luca's solution was shorter to write.

I modified it to
  <jx:forEach var="p" select="${cocoon.request.getParameterNames()}">
      <param key="${p}">
	<jx:forEach var="v" select="${cocoon.request.getParameterValues(p)}">
	  <value>${v}</value>
	</jx:forEach>
      </param>
    </jx:forEach>
which seems to do what I want.

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Direct: +47 6783 1136 | Mobile: +47 986 48 234
Email: kjetil.kjernsmo@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | 
Fax:+47 6783 1001


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message