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
her methods.
Mohan
-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
p
: "Kalra, Ashwani" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL 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 w
>Sent: 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 Act
, December 23, 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.
t;[mailto:[EMAIL 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.apach
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
7 matches
Mail list logo