You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/28 01:57:50 UTC
DO NOT REPLY [Bug 26476] -
Possibility of allowing parameter(s) in struts tags property
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26476>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26476
Possibility of allowing parameter(s) in struts tags property
Joe@Germuska.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|0.5 Final |Nightly Build
------- Additional Comments From Joe@Germuska.com 2004-01-28 00:57 -------
Mapped property accessors support accessing any bean property which takes a single string as its
parameter. In your example, if the string argument is always literal, you would use this syntax:
<bean:write name="location" property="name(-347849847775344)" />
If you need to dynamically assign the parameter value, you can construct the value for property in
the page and then use a RT-expr to pass it to the bean:write tag:
<bean:define id="prop">name(<bean:write name="paramValue" />)</bean:define>
<bean:write name="location" property="<%= prop %>" />
It may not be glamorous or tidy, but it works. Personally, I'd be hesitant to add the attribute you
propose to the bean:write tag since the number of attributes for the various struts tags is already
large, and the names are sometimes already not terribly clear.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org