You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by j h <jh...@ic.ac.uk> on 2004/07/08 12:00:02 UTC
Application Resources application.properties
How can I get access to the Application Resources (application.properties) in
the java code?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Application Resources application.properties
Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
in Action:
getResources(javax.servlet.http.HttpServletRequest request)
or
getResources(javax.servlet.http.HttpServletRequest request,
java.lang.String key)
first for default
some think like this:
<message-resources
parameter="net.wessendorf.struts.ApplicationResources" null="false"/>
-->ApplicationResources.properties
second, when you provide a key for alternative Bundles.
<message-resources key="foo"
parameter="net.wessendorf.struts.ApplicationResources2" null="false"/>
-->ApplicationResources2.properties
Cheers,
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of j h
> Sent: Thursday, July 08, 2004 12:00 PM
> To: user@struts.apache.org
> Subject: Application Resources application.properties
>
>
> How can I get access to the Application Resources
> (application.properties) in
> the java code?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org