Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 - Displaying error messages

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:

I am trying to set up the validator framework with a form. A typical text field in the form is:

<s:textfield theme="simple" name="city"/>

The city name is required. What tag(s) do I need to use to display validation errors?

Thanks
Eric
 
Katie Doody
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is what you are looking for.The corresponding xml file used for the validation of your form should have:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic