Results 1 to 3 of 3

Thread: Form validation

  1. #1

    Default Form validation

    Hi

    For form validation: is it possible to display mulitple error messages for a single field?

    For example, for creating a "user" there are some rules for a password - it must be longer than 6 characters, and not the same as the username etc.

    What if the person enters "abc", which is the same as the username, and shorter then 6 characters. Is it possible to "reject" both these errors and have 2 error messages displayed on the JSP for the password field?

    Thanks,
    Peter

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    yes, it's possible. What problems did you encounter with it?
    Darren Davison.
    Public Key: 0xE855B3EA

  3. #3

    Default

    Thanks, as soon as I saw the post saying it was possible, I realised I was only seeing one error message for my field because I was not looping through the error object on the jsp...

    Peter

Similar Threads

  1. Replies: 3
    Last Post: Jun 8th, 2010, 03:27 AM
  2. Replies: 1
    Last Post: Jan 20th, 2009, 11:50 AM
  3. Replies: 9
    Last Post: May 4th, 2006, 09:53 AM
  4. Commons validation with wizard form controller
    By brianstclair in forum Web
    Replies: 0
    Last Post: Jan 14th, 2005, 02:14 PM
  5. Replies: 0
    Last Post: Oct 29th, 2004, 04:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •