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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to