Can you please explain this a bit more?: 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.
Wendy Smoak wrote: > 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] -- Thanks Mick Knutson (925) 951-4126 HP Consulting Services Safeway (Blackhawk Fastword Project) J2EE Architect --- "MMS <safeway.com>" made the following annotations. ------------------------------------------------------------------------------ Warning: All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient. This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s). If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately. ============================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]