File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
how to specify composite data in s struts FORM
Search best way
A Friend From China
struts2 select and js
xsd : defining array