struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <maili...@matthias-wessendorf.de>
Subject RE: Application Resources application.properties
Date Thu, 08 Jul 2004 10:20:13 GMT
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


Mime
View raw message