Hi everybody,

I just subscribed the list, so please excuse me if what I'm writing has already been 
discussed.
Using struts, I felt the need for a "bean:write"-like tag that could display not only 
properties but the result of any method call (with its parameters and all). Where 
'bean:write' would allow  :
<bean:write name="user" property="fullName"/> instead of <%=myUserBean.getFullName()%>
,the 'bean:write'-like tag would allow :
<bean:writeMethod name="user" method="isSameAge(user2)"/>  or <bean:writeMethod 
name="user" method="isAge(42)"/> instead of <%=myUserBean.isSameAge(myOtherUserBean)%> 
or <%=myUserBean.isAge(42)%>

Thus, I made a very simple version of such a tag where you can give as parameter  : 
struts-beans (=belonging to one of the 'scope' collections), strings and numbers. My 
question is : do you plan to have such a tag in a future release ? Do you already have 
it ? Or is the method call idea just not what beans are for ?

Thanks for your answer(s).

David

Reply via email to