The project that I am working on is using Tiles, so I 
just added some code in the base tile jsp to do it:

<%-- Get Struts and JSTL on the same resources and locale --%>
<%
        Config.set(request, Config.FMT_LOCALE,
session.getAttribute(org.apache.struts.Globals.LOCALE_KEY));
        Config.set(request, Config.FMT_LOCALIZATION_CONTEXT,
((org.apache.struts.util.MessageResources)
request.getAttribute(org.apache.struts.Globals.MESSAGES_KEY)).getConfig());
%>

-----Original Message-----
From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 4:45 AM
To: Struts Users Mailing List (E-mail)
Subject: Struts and JSTL <fmt:setBundle>



Struts has a i18n implementation that predates JSTL version.
I was wondering how to use the Struts application properties
with the JSTL <fmt:bundle>? The obvious answer is point
JSTL bundle to load the Struts message bundle. In other have
two resource bundles in memory. However, is there any
plans to make MessageResources implement the 
`javax.servlet.jsp.jstl.fmt.LocaleContext' directly?

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923


***********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***********************************************************************

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


*************************************************************************** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*************************************************************************** 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to