Struts tag with automatic data verification function

xiaoxiao2021-03-06  83

Current Struts data check is in Bean. It requires you to submit data to check the legality of form data. And ask beans and forms to be strict. It is limited to use. For this purpose, it has developed a set of labels and puts the data check in the label. The label check rules come from your database table structure.

This tag component is named useeasy-size.tld. Similar to the Struts-HTML.TLD tag assembly. UseEasy-size.tld retains all the struts-html.tld all features, which extends the tag's data check properties. Apply the useEasy-size.tld tab to implement the front desk automatic check of page forms. UsesEeasy-size.tld only supports Oracle Database.

Applying this tag's greatest advantage is that it is a front desk check, so you don't need to submit data. Its verification rules come from your database table structure, so its verification is the most accurate, most appropriate.

When your table structure changes, your HTML can do not need to do any changes. The label still makes the correct verification.

Apply this tag, you don't even need any script check code!

Useeasy-size.tld supports the following checks:

Not an air check. Digital Type Check. Date type verification. Maximum length verification. Use examples Example.jsp:

<% @ Taglib Uri = "/ Web-INF / UseEasy-size.tld" prefix = "shtml"%>