this is the end of my action method
System.out.println("errors.size()=" + errors.size());
if (errors.size() > 0)
{
saveErrors(request, errors);
return mapping.findForward("fail");
} return mapping.findForward("success");
}and here is a snippet from struts-config.xml
<action path="/subprofilelist"
type="...admin.suspendenable.SuspendEnableAction"
name="suspendenableform"
scope="request"
validate="false"
parameter="whatdoesthisdo"
input="/listprofiles.jsp"> <forward name="success" path="/listprofiles.jsp"/>
<forward name="fail" path="/error.jsp"/>
</action>... and finally I have <html:errors /> in error.jsp which renders nothing. Still confused....
Julian
Gemes Tibor wrote:
julian green wrote:
saveErrors(request, errors);
return mapping.findForward("success");
This seems to be ok.
- Is errors not empty? (if empty there will be no error of course)
- Is your ActionForward not redirected? (this would create a new request, so everything you've saved in request would be discarded)
- Do you have a <html:errors> on your jsp? (this displays the errors)
Hth, Tib .
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

