Hi,

Am trying out the errors tag but to no avail...I have the following code in
my validate() method of my relevant Form class...

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {
        ActionErrors errors = new ActionErrors();
        //if (phn == null)
         errors.add("phn",         new ActionError("phn can't be null"));
}

...and then have the <html:errors/> tag in my jsp. However when I process
the request having left the "phn" field empty, nothing pops up on my jsp
page. Am i missing something vital here. I have followed the docs and API to
no avail!

Thanks

Marc
  

Reply via email to