struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Tran" <dantt...@hotmail.com>
Subject Re: Error Message From Action Class
Date Mon, 07 Jul 2003 06:48:49 GMT
Did you define a property called "NAMING" in your resource properties file?

-D
----- Original Message ----- 
From: "Anurag Garg" <anurag.garg@nucleussoftware.com>
To: <struts-user@jakarta.apache.org>
Sent: Sunday, July 06, 2003 11:36 PM
Subject: Error Message From Action Class


> Hi All,
>
> In my Action class, If i get any exception I am populating my ActionErrors
> object and passing that object in saveErrors method of the Action Class.
> Then I redirect the navigation to an error page defined in global forward
> where i am using <html:errors /> to display the error message.
> Error page defined in the global forwards is displayed but the error
> message is not displayed. Is there any way to acheive this functionality.
> Below is the code snippet from my Action Class.
>
>
> errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("NAMING"));
> saveErrors(request,errors);
> responsePage = "error";
>
>
> Anurag Garg
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message