基于XML配置方式实现对指定action方法校验
基于XML配置方法实现对指定action方法校验,详细解述请看我上传的struts2的教程。src\cn\itcast\action\PersonAction-manage_update-validation.xml
src\cn\itcast\action\PersonAction.java
src\struts.xml
WebRoot\META-INF\MANIFEST.MF
WebRoot\WEB-INF\lib\commons-fileupload-1.2.1.jar
WebRoot\WEB-INF\lib\commons-io-1.3.2.jar
WebRoot\WEB-INF\lib\commons-logging-1.0.4.jar
WebRoot\WEB-INF\lib\freemarker-2.3.15.jar
WebRoot\WEB-INF\lib\jstl.jar
WebRoot\WEB-INF\lib\ognl-2.7.3.jar
WebRoot\WEB-INF\lib\standard.jar
WebRoot\WEB-INF\lib\struts2-core-2.1.8.jar
WebRoot\WEB-INF\lib\xwork-core-2.1.6.jar
WebRoot\WEB-INF\page\message.jsp
WebRoot\WEB-INF\web.xml
WebRoot\index.jsp
.classpath
.mymetadata
.project
(Based on the XML configuration method, the specified action method is verified. For a detailed explanation, please see the struts2 tutorial I uploaded.
src\cn\itcast\action\PersonAction-manage_update-validation.xml
src\cn\itcast\action\PersonAction.java
src\struts.xml
WebRoot\META-INF\MANIFEST.MF
WebRoot\WEB-INF\lib\commons-fileupload-1.2.1.jar
WebRoot\WEB-INF\lib\commons-io-1.3.2.jar
WebRoot\WEB-INF\lib\commons-logging-1.0.4.jar
WebRoot\WEB-INF\lib\freemarker-2.3.15.jar
WebRoot\WEB-INF\lib\jstl.jar
WebRoot\WEB-INF\lib\ognl-2.7.3.jar
WebRoot\WEB-INF\lib\standard.jar
WebRoot\WEB-INF\lib\struts2-core-2.1.8.jar
WebRoot\WEB-INF\lib\xwork-core-2.1.6.jar
WebRoot\WEB-INF\page\message.jsp
WebRoot\WEB-INF\web.xml
WebRoot\index.jsp
.classpath
.mymetadata
.project)
页:
[1]