You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emmanouil Batsis <Em...@eurodyn.com> on 2006/05/04 15:28:43 UTC
Re: ???en_GB. in errors
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