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..
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
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
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
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
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
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
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
---
8 matches
Mail list logo