posted 19 years ago
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception
{
DynaValidatorForm registrationForm = (DynaValidatorForm)form;
ActionErrors errors = new ActionErrors();
// add some errors if something bad happened
if(!errors.isEmpty())
return (mapping.findForward("success"));
else
saveErrors(request, errors);
return (mapping.findForward("failure"));
A good workman is known by his tools.