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
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 )
//
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
3 matches
Mail list logo