permaculture playing cards*
The moose likes Struts and the fly likes how we use form validation in struts using validate.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how we use form validation in struts using validate.xml" Watch "how we use form validation in struts using validate.xml" New topic
Author

how we use form validation in struts using validate.xml

Ashutosh kumar singh
Greenhorn

Joined: Feb 27, 2008
Posts: 26
i am using struts for design frontend. but now i want to validate field using validate.xml. so if any person have some idea. then give me just small example. because from net example this is not clear.


thanks
Ashutosh kumar Singh
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This article from OnJava has a complete example using the Struts Validation Framwork along with a good explanation. For more of a reference type document, see The Struts Validator Guide. Once you've read these sources, let us know if you still have questions.
[ March 24, 2008: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
 
jQuery in Action, 2nd edition
 
subject: how we use form validation in struts using validate.xml
 
Similar Threads
Custom Validation
Javascript error in range validation
Advice for Struts forms with validation
Checkbox/Multibox validation in Struts
Struts 2.1.8 validation.xml & internationalization