RE: Message resource as a String variable

2003-09-05 Thread James Mitchell
You mean like this? bean:define id=myVar bean:message key=someKey/ /bean:define -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: Message resource as a String variable

2003-09-05 Thread Lars Bergstrm
Yep, Use one of the getMessae methods on the MessageResources class. http://jakarta.apache.org/struts/api/org/apache/struts/util/MessageResou rces.html The locale is fetched from a session attribute. Here is an example: Locale locale = (Locale) session.getAttribute( Action.LOCALE_KEY );