struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: Getting Messages in an Action?
Date Tue, 16 Sep 2003 15:25:04 GMT
Yes, you can call the getResources() method inside your action which will
return a MessageResources object that you can read the localised messages
from. Check the javadoc for details on the parameters.

-----Original Message-----
From: Carl-Eric Menzel [mailto:cm-strutsuserlist@bitforce.com]
Sent: Tuesday, 16 September 2003 23:22
To: struts-user@jakarta.apache.org
Subject: Getting Messages in an Action?



Hello,

is it possible to retrieve a message from the application resources
(like <bean:message key="..."/>) inside an Action? How can I get to
the current localized messages?

Thanks
Carl-Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message