Struts2知识点总结

 2023-09-05 阅读 335 评论 0

摘要:2 Struts21 Struts2 简化Servlet编写2 Struts2使用步骤1 添加第三方包2 在web.xml当中配置核心过滤器<filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter
2    Struts21    Struts2        简化Servlet编写2    Struts2使用步骤1    添加第三方包2    在web.xml当中配置核心过滤器<filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping>3    Action的编写规范1    普通JAVA类2    实现Action接口3    继承ActionSupport类4    Action的配置<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"><struts><package><action></action></package></struts>    5    接收页面数据1    属性/get/set2    对象/get/set页面表单的命名规则对象名.属性名3    对象/ModelDriven页面表单的命名规则属性名6    Stuts2 访问ServletAPIActionContextServletActionContextXXXAware7    其他信息1    默认Action2    全局结果集3    异常配置4    全局异常配置5    常量配置6    验证框架配置7    拦截器        8    类型转换器9    国际化10    标签

 

转载于:https://www.cnblogs.com/hackxiyu/p/7076286.html

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/1/607.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息