Yeah,I think this was it. I will try it
Thanks
-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 8:13 PM
To: 'Struts Users Mailing List'
Subject: RE: retrieving values from application.properties file
This might be the wrapper
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 4:03 PM
To: Struts Users Mailing List
Subject: RE: retrieving values from application.properties file
Ok, Thanks. I thought that I could use some struts wrapper class which will
provide some fn which
Hi Ashwani
In a jsp page use follwing code:
org.apache.struts.util.PropertyMessageResources res =
(org.apache.struts.util.PropertyMessageResources)application.getAttribut
e(org.apache.struts.Globals.MESSAGES_KEY);
out.println(res.getMessage(KEYNAME));
Dhiraj
-Original
PROTECTED]
Sent: Tuesday, December 23, 2003 12:48 PM
To: [EMAIL PROTECTED]
Subject: RE: retrieving values from application.properties file
Hi Ashwani
In a jsp page use follwing code:
org.apache.struts.util.PropertyMessageResources res
, 2003 2:24 AM
To: Struts Users Mailing List
Subject: RE: retrieving values from application.properties file
hi,
One more thing to add is that I dont have access to request,pagecontext
etc.
I am writing a Servicelocator class and I want to access some values in
that file. Is it possible.
Otherwise I
: Tuesday, December 23, 2003 1:01 PM
To: Struts Users Mailing List
Subject: RE: retrieving values from application.properties file
Use
ResourceBundle resource =
ResourceBundle.getBundle(resources.application);
Else :
If you are in Action/Lookup Dispatch Action class
MessageResources resource
PROTECTED]
Sent: Tuesday, December 23, 2003 5:32 AM
Subject: RE: retrieving values from application.properties file
Ok, Thanks. I thought that I could use some struts wrapper class which
will
provide some fn which takes the key as input. I didnt wanted to load the
bundle etc as its already done
7 matches
Mail list logo