Hi All;I would liek to know whether the following is possible in struts?<bean:message key="<bean:write name='xxx' /> " />I tried, but is not getting results.Or any turn around techniques?Regards
Hi, you want to use some bean as the key. For that dont use the key attribute in bean:message instead use the name attribute giving it the name of your bean xxx that is the key. And if your key is actually a sub attribute of bean xxx use the name="xxx" and property="propxxx" , either way make sure ya dont use the key attribute. Its in the docco http://struts.apache.org/userGuide/struts-bean.html#message
Had same issue with radio buttons and checkboxes where i was trying to avoid using scriptlets and wanted to use the beans. I havent had to do what you doing but just reading docco seems same sort of thing.
Hope some help.