Struts2 Validation using validation.xml Netbeans Example

Struts2 provides different validation methods. In this post basic validation method is described that uses the validation.xml file.
 
File Structure
validation_struts2_file_structure_netbeans
 
—index.jsp—

 
—Register.java—

 
—struts.xml—

 
—Register.validation.xml— (Place this file in the folder where your Register.java is)

 

There are other pages also. Download the complete program.
Validation_Struts2_Mvn_Netbeans.rar

 
OUTPUT
validation_output_eclipse
source: http://struts.apache.org/release/2.0.x/docs/validation.html

Leave a Reply

Contact Us
close slider
Contact Us

How can we help you with?