cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Accessing multiple-valued request parameters with RequestParameterModule?
Date Sat, 13 Dec 2003 16:53:59 GMT
Andrzej Jan Taramina wrote:

>Is there any way to access all the values of a multiple-valued request 
>parameter (eg. generated by an HTML <select> tag that allows multiple items 
>to be selected) in a sitemap?
>
>Using something like {request-param:myParameter} only returns the first 
>value, and I need to access all of the values.
>  
>

You can try request jx path module (RequestModule.java). Expression like:

    {request:getParameterValues(.,'myParameter')[1]}

should return first value; [2] will return second (if any), etc (that's 
the idea, no guarantee that it will actually work).


Vadim



Mime
View raw message