You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pat Quinn <pa...@hotmail.com> on 2003/02/03 15:50:10 UTC

Message Resource Bundle from an action

hi guys,

Anyone know how i can access the message resource bundle from an action 
class??

Cheers

Pat





_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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


RE: Message Resource Bundle from an action

Posted by James Mitchell <jm...@apache.org>.
>From the example app:

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/example/org/apache/
struts/webapp/example/EditRegistrationAction.java?rev=1.10&content-type=
text/vnd.viewcvs-markup




public ActionForward execute(ActionMapping mapping,
				 ActionForm form,
				 HttpServletRequest request,
				 HttpServletResponse response)
	throws Exception {

	// Extract attributes we will need
	Locale locale = getLocale(request);
	MessageResources messages = getResources(request);






--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over the man who
cannot read them."
	- Mark Twain (1835-1910)







> -----Original Message-----
> From: Pat Quinn [mailto:pat_quinn2009@hotmail.com] 
> Sent: Monday, February 03, 2003 9:50 AM
> To: struts-user@jakarta.apache.org
> Subject: Message Resource Bundle from an action
> 
> 
> hi guys,
> 
> Anyone know how i can access the message resource bundle from 
> an action 
> class??
> 
> Cheers
> 
> Pat
> 
> 
> 
> 
> 
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8. 
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> 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