Learning site

xiaoxiao2021-04-09  376

http://www.blogjava.net/oksonic/

www.eclipsepowered.net/

** Now configure the Validator framework to verify the submitted data **

First, configure the struts-config.xml file to increase the Validator framework

Validator is incremented by Struts's plugin, which will increase the use of the wizard here.

Plugin class: org.apache.struts.valiDator.validatorPluginset Properties: Here Add the following content: pathnames value: /web-inf/Validator-rules.xml ,/web-inf/Validation.xml

Create a validation.xml file in the web-inf directory, pay attention to the file name and the above

The content is as follows: ************************************************************* ************************************************

< Arg0 key = "prompt.password" />

*********************************************************** ************************************* Add the following in the resource file

Add Errors.Required = {0} is required in ApplicationResources.Properties file.

Add Errors.Required = {0} in the applicationResources_n_cn.properties file!

These two sentences are the framework is called by the frame.

Now modifying actionform to change Validate in Actionform to Validator

Modify the RESET event in LogonForm

转载请注明原文地址:https://www.9cbs.com/read-133184.html

New Post(0)