Here's a way to get it using straight JSTL:

<fmt:bundle basename="ApplicationResources">
    <fmt:message var="foo" key="label.foo"/>
</fmt:bundle>

<c:out value="${foo}"/>

-Tim

-----Original Message-----
From: Eric W Hauser [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:05 PM
To: [EMAIL PROTECTED]
Subject: Application Resources with EL?


I looked through the archives and couldn't find anything on this...Since
the application resources is stored in the servlet context of type
org.apache.struts.util.PropertyMessageResources, there does not seem to be
an easy way to access this using EL since the getMessage(key) method has
to be called to access a message.  For instance, if I wanted to access
the a string in the app. resources file for an image name, then I couldn't
grab this out using just EL.  I was wondering what solutions people had
come up with for doing something like this.  My first thought it to store
a map that is a reflection of the message resources so I can access it.
Any input would be appreciated.

-------------------
Eric Hauser
[EMAIL PROTECTED]
(317) 679-4766


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

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

Reply via email to