If you're storing the errors under the key "dashboard", you need to extract
them with that key, otherwise you need to use Globals.  From the Struts RC1
tag (sorry I don't have the Final src handy)

  protected String name = Globals.ERROR_KEY;

Globals.ERROR_KEY is the default key the <html:errors/> tag will look under.

HTH,
Mike Jasnowski

-----Original Message-----
From: Monajit Choudhury [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 5:29 AM
To: Struts Users Mailing List
Subject: bnot able to display error messages


Hi
  I have some problems displaying errors in the jsp page.
In the action class, I am  have the following code

catch (Exception exception) {
            errors.add("dashboard",new ActionError("dashboard","error
fetching dashboard valueobject"));

            saveErrors(request, errors);
            forwardValue = mapping.findForward("failure");
            return forwardValue;
        }

And in the jsp page i am trying to print out the errors by putting
<html:errors/> tag so  that it displays all the errors that are
saved.But the page is not displaying any errors.
Please help

Regds
Monojit



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to