You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Néstor Boscán <ne...@tcs.com.ve> on 2005/09/07 20:02:11 UTC
Is there a way to access Struts message resources from tag?
Hi
Is there a way to access the message resources configured in the
struts-config file from a JSP using <fmt:message /> tag?
Regards,
Néstor Boscán
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Is there a way to access Struts message resources from
tag?
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Néstor Boscán" <ne...@tcs.com.ve>
> Is there a way to access the message resources configured in the
> struts-config file from a JSP using <fmt:message /> tag?
I have this in (Servlet 2.3) web.xml:
<!-- this is necessary for the JSTL <fmt:message> tags to work -->
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>ApplicationResources</param-value>
</context-param>
Adjust the param value if your ApplicationResources.properties file isn't
directly in WEB-INF/classes.
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org