From: "Mick Knutson" <[EMAIL PROTECTED]>
I want to write a bean:message with a dynamic key such as: <bean:message key="<c:out value='$foo' />bar" /> So that my ApplicationResources.properties can display: foobar = A combined key resulting in text.
If you're using <c:out>, (JSTL 1.0 on a Servlet 2.3 container,) you should be using the Struts-EL tags instead of the original ones. Then you can use an ${expression} for the 'key' attribute. Or, use JSTL's <fmt:message> tag. In that case, you'll need to add a context param to web.xml so JSTL can see the .properties file: <context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> <param-value>ApplicationResources</param-value> </context-param> HTH, -- Wendy Smoak http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsMessagesAndJSTL --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]