Re: error messages doesn't appear if validate is called programatically

2006-01-21 Thread Hakan . Barisik
appear if validate is called programatically Hakan, You need to store the error messages in the request or session after you retrieve them: ActionErrors errors = form.validate(); if ((errors != null) !errors.isEmpty()) { saveErrors(request, errors); return mapping.getInputForward

error messages doesn't appear if validate is called programatically

2006-01-19 Thread Hakan . Barisik
Hi, I have started using struts recently. I don't want to use default validation checking so I changed struts-config.xml. . . action path=/SomethingAction ... . . . validate=false . . In the SomethingAction class's execute method I call if (form.validate().size0 ) //

Re: error messages doesn't appear if validate is called programatically

2006-01-19 Thread Paul Benedict
Hakan, You need to store the error messages in the request or session after you retrieve them: ActionErrors errors = form.validate(); if ((errors != null) !errors.isEmpty()) { saveErrors(request, errors); return mapping.getInputForward(); } Paul