struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Passing variables in url
Date Mon, 27 Aug 2007 15:39:41 GMT
2007/8/27, Anna Simbirtsev <asimbirtsev@gmail.com>:
> Hello
> I am trying to pass a variable in the url, but I can't seem to get the value
> to be passed.
>
> <html:link page="/myAction.do" paramId="param1" paramName="value">
>         <html:img srcKey="add.button.image" altKey="add.button.image.alt"
> width="80" height="20"border="0"/></html:link>
>
> value is a bean in struts, that has get/set functions.
>
> I tried using paramName="${value_}" and pass a string, but it did not work.

If "value" was a simple attribute (such as a string or a number) it
should work, but since you say it is a bean you need to add the
"paramProperty" attribute in the <html:link> tag.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message