Hi,
I am using the following code to display errors in my
jsp. In my action class:
-----
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("Error1"));
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("Error2"));
----
saveErrors(request, errors);
forward = mapping.findForward("success");
and in my jsp i am using <html:errors/> .
I am not using any action form. I just want to display some business errors that occur in my action class. But this doesnot work.
Can any one tell me whats wrong in this?
Thanks in advance