struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanouil Batsis <Emmanouil.Bat...@eurodyn.com>
Subject Re: ???en_GB. in errors
Date Thu, 04 May 2006 13:28:43 GMT
Shoukat, Faisal wrote:

>Hi,
>
>I throw a application exception back to the web layer and catch it in my
>action class.  I then create a errors object with the exception as follows:
>
>errors.add("errors", new ActionMessage(e.getCause().getMessage()));
>  
>

You need to add false as a second param to the ActionMessage 
constructor; it will tell it to use the value as is instead of trying to 
match it as a key in the application messages bundle. Check out the API!

hth,

Manos

>  
>


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


Mime
View raw message