On Tue, Feb 05, 2002 at 01:03:18PM -0500, Henry Lu wrote:
# Here is my ApplicationResource.properties file used ...../classes
# directory
# 
# errors.header=<ul>
# errors.footer=</ul><hr>
# errors.id.required=id is required.
# ---------------------------------------------------------------------------
# Here is my validate() function
# 
#       if (id == null || id.equals("123") == false) {
#          errors.add(ActionErrors.GLOBAL_ERROR,
#                 new ActionError("error.id.required", "id=123"));
#       }
# ---------------------------------------------------------------------------

  you have mis-spelled the error key - in ApplicationResource.properties
  you have 'errors', but in the form only 'error'.

  Btw. I suggest you put the error message inside <li></li>, so that 
   1) you have correct html
   2) if there were more errors, the would have their own lines in the
      list

  Pavel

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to