RE: Using message resources in non-action class

2006-03-14 Thread starki78
Thanks a lot it works!!! -- Initial Header --- >From : "Anuradha S.Athreya" [EMAIL PROTECTED] To : "Struts Users Mailing List" user@struts.apache.org Cc : Date : Tue, 14 Mar 2006 14:23:43 +0530 Subject : RE: Using message resour

RE: Using message resources in non-action class

2006-03-14 Thread Anuradha S.Athreya
;From : [EMAIL PROTECTED] To : user@struts.apache.org, [EMAIL PROTECTED] Cc : Date : Mon, 13 Mar 2006 13:11:34 +0530 Subject : RE: Using message resources in non-action class > > The following should work. > > MessageResources messageresources = (M

RE: Using message resources in non-action class

2006-03-13 Thread Chandra.Ravinithala
PROTECTED] Sent: Monday, March 13, 2006 2:32 PM To: user Subject: RE: Using message resources in non-action class Hi This would be a very good solution but when I test it this way: public static void main(String args[]) { ResourceBundle messageresources = ResourceBundle.getBundle

RE: Using message resources in non-action class

2006-03-13 Thread starki78
redInputStream is = new BufferedInputStream( > getClass().getResourceAsStream("ApplicationResources")); > properties.load(is); > > Chandra > > > > -Original Message- > From: starki78 [mailto:[EMAIL PROTECTED] > Sent: Monday, March 13, 2006 1:21 PM > To: user &g

RE: Using message resources in non-action class

2006-03-13 Thread Chandra.Ravinithala
s.load(is); Chandra -Original Message- From: starki78 [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 1:21 PM To: user Subject: RE: Using message resources in non-action class Yes this is a good solution! Do you also have a solution to access these message resources from a plain

RE: Using message resources in non-action class

2006-03-12 Thread starki78
, [EMAIL PROTECTED] Cc : Date : Mon, 13 Mar 2006 13:11:34 +0530 Subject : RE: Using message resources in non-action class > > The following should work. > > MessageResources messageresources = (MessageResources) > servlet.getServletContext().getAttribute("

RE: Using message resources in non-action class

2006-03-12 Thread Chandra.Ravinithala
The following should work. MessageResources messageresources = (MessageResources) servlet.getServletContext().getAttribute("allMessages"); Chandra -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 1:09 PM To: 'Struts Users Mailing List