Re: Resources from ActionForm

2004-01-07 Thread e-denton Java Programmer
Thanks, everyone. This worked! - Original Message - From: "Shishir K. Singh" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 9:47 AM Subject: RE: Resources from ActionForm Ooops..

Re: Resources from ActionForm

2004-01-07 Thread e-denton Java Programmer
quot; + mrs); I get: PortalResources: null Thanks, Will - Original Message - From: "Matthias Wessendorf" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>; "'e-denton Java Programmer'" <[EMAIL PROTECT

Re: Resources from ActionForm

2004-01-07 Thread Manfred Wolff
To: Struts Users Mailing List Subject: RE: Resources from ActionForm I think the messageresources is stored in the the application context. Don't know if you can access the application context in the form. One way would be to subclass RequestProcessor, put a static function to get the resource

RE: Resources from ActionForm

2004-01-07 Thread Shishir K. Singh
Wednesday, January 07, 2004 10:20 AM To: 'Struts Users Mailing List' Subject: RE: Resources from ActionForm I think the messageresources is stored in the the application context. Don't know if you can access the application context in the form. One way would be to subclass Reque

RE: Resources from ActionForm

2004-01-07 Thread Matthias Wessendorf
Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 4:20 PM To: Struts Users Mailing List Subject: RE: Resources from ActionForm I think the messageresources is stored in the the application context. Don't know if you can access the application context in the form. One way would b

RE: Resources from ActionForm

2004-01-07 Thread Shishir K. Singh
List'; 'e-denton Java Programmer' Subject: RE: Resources from ActionForm hi, in an actionForm.validate(): MessageResources res = (MessageResources) request.getAttribute(GLOBALS.MESSAGES_KEY); //thats default-key String foo = res.getMessage("my_Key_In_bundle"); //get an

RE: Resources from ActionForm

2004-01-07 Thread Matthias Wessendorf
lto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 3:42 PM To: Struts Users Mailing List Subject: Resources from ActionForm Hi, I want to access a resource bundle (key=PORTAL_RESOURCES) from an ActionForm to pull out display names for error messages (ActionError). I can't see how to acce

Resources from ActionForm

2004-01-07 Thread e-denton Java Programmer
Hi, I want to access a resource bundle (key=PORTAL_RESOURCES) from an ActionForm to pull out display names for error messages (ActionError). I can't see how to access the resource bundle and pull out the strings I want. Thanks for your help. Will ---