struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Girish Naik <girish.n...@gmail.com>
Subject Re: Adding dynamic parameters to <s:url>
Date Tue, 02 Jun 2009 13:59:29 GMT
try adding *status="webP" *in the s:iterator and use:
<s:param name="*#webP.name*" value="*#webP.value*" />


Regards,
---------------------------------------------------------
Girish Naik
Mobile:-+91-09740091638
girish.naik@gmail.com
George Bernard Shaw<http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html>
- "A government that robs Peter to pay Paul can always depend on the
support of Paul."

On Tue, Jun 2, 2009 at 7:13 PM, Felipe Fraga <felipefraga@gmail.com> wrote:

> Greetings to all.
>
> I am trying to store dynamic parameters through requests. So, I have a
> class like this:
>
> >>> public class WebParameter {
> >>>     private String name;
> >>>     private String value;
> >>> }
>
> and in my Action class I have:
>
> >>> private List<WebParameter> webParameters;
>
> then I would like to do something like this in the JSP
>
> <s:url id="theURL" namespace="theNamespace" action="theActionName">
>    <s:iterator value="webParameters">
>        <s:param name="%{name}" value="%{value}" />
>    </s:iterator>
> </s:url>
>
> I can assure that webParameters is in the request scope, because I can
> iterate over it in a different place in the JSP and get the correct
> values.
>
> But inside <s:url> tab, no parameters are actually added.
>
> How can I achieve this?
>
> Thanks a lot,
>
> Felipe
>
> PS: All getters and setters are there in the code, but were ommited in
> this e-mail.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message