This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want Struts validator to ignore fields not present

Trevor Brown
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one struts form that has user information such as name and password. Most of the fields are defined as required using the validator. I want to have an abbreviated .jsp for a password reset page that uses the same form but would not include fields that are required on the more verbose .jsp page. How can I maintain the validation rules but allow them to disregard any fields not present in the abbreviated page?

valdwhen present?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic