How can we use JSP scriptlet in <bean:write> tag e.g. <bean:message key="homepage.text.announcements.text.first"/> Can I do following <bean:message key="homepage.text.announcements.text.first<%=institute%>"/> Where <%institute%> is my variable having different values. Basically I wanna select key dynamically.
Anybody can please help
"Know where to find the solution and how to use it - that's the secret of success."
posted 10 years ago
The rule with scriptlets used in attributes of a Struts tag is "all or nothing", meaning the entire attribute must be a scriptlet, or no part of it can be a scriptlet.