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

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.5 Final                   |Nightly Build



------- Additional Comments From [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to