Hi,

Camino generates the validate block in the myForm.java file with the
skeleton:

  public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest request) {
    /**@todo: Override this org.apache.struts.action.ActionForm method*/
    return super.validate(actionMapping,  request);
  }

Where should I put my validation code, in this block or in the
myFormBase.java code? For example, if I have a property empName and it must
not be null, where would I put the test:

if ((empName == null) || (empName.length() < 1))
            errors.add("empName", new
ActionError("error.empname.required"));


Thanks for your help,
Phil Hershkowitz
===
To subscribe/unsubscribe, visit 
http://list.scioworks.com:8081/guest/RemoteListSummary/camino_user

Reply via email to