You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric Chow <er...@gmail.com> on 2004/09/04 18:49:33 UTC

Struts and JSTL ???

Hello,

How can JSTL <fmt:message .../> uses Struts' resources and locale setting ???


Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts and JSTL ???

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Add the following context-param to your web.xml -- the element should go 
before any servlet declarations ... ApplicationResources is the name of 
your message resoures.

<context-param>
  <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
  <param-value>ApplicationResources</param-value>
</context-param>

Eric Chow wrote:

> Hello,
> 
> How can JSTL <fmt:message .../> uses Struts' resources and locale setting ???
> 
> 
> Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org