This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 - Displaying error messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Displaying error messages" Watch "Struts 2 - Displaying error messages" New topic
Author

Struts 2 - Displaying error messages

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
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

Joined: Nov 03, 2006
Posts: 90
I think this is what you are looking for.The corresponding xml file used for the validation of your form should have:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 - Displaying error messages
 
Similar Threads
A Friend From China
how to specify composite data in s struts FORM
Search best way
struts2 select and js
xsd : defining array