Research and Application on validation.xml of Struts2 Framework Verify File
Fenghua Li · Advances in computer science research · 2015
Input validation is the problem that need to solve for all Web applications, to calibrate data for its constraints and rules.The Struts2 framework provides a variety of check method, and validation.xmlfile is the most common method in this research.Firstly, study Struts2 framework architecture composed of three parts such as model, view and controller; Then, show the input checking process of Struts2 through a graphical mode ;Finally, the design of validation.xmlvalidation file example, realizes the checkers such as required string, string length, integer, date and double precision floating point number.Using Validation.xml authentication of Struts2 has the advantages of convenient and suitable, and can also be combined with other methods in practical application.