RE: retrieving values from application.properties file

2003-12-26 Thread Kalra, Ashwani
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

RE: retrieving values from application.properties file

2003-12-24 Thread Mohan Radhakrishnan
-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

RE: retrieving values from application.properties file

2003-12-23 Thread Dhiraj.Gupta
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

RE: retrieving values from application.properties file

2003-12-23 Thread Kalra, Ashwani
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

RE: retrieving values from application.properties file

2003-12-23 Thread Shishir K. Singh
, 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

RE: retrieving values from application.properties file

2003-12-23 Thread Kalra, Ashwani
: 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

Re: retrieving values from application.properties file

2003-12-23 Thread Martin Gainty
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