![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
文章平均质量分 78
世事如棋__2016
学习笔记
展开
-
struts2 环境搭建
web.xml配置: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* struts.xml配置(根据需要配置): <interceptor name="timerInt原创 2017-02-24 11:14:00 · 197 阅读 · 0 评论 -
maven+Spring+Struts2+Hibernate 整合 xml配置
pom.xml配置: value。 --> 4.3.4.RELEASE junit junit 4.12 test org.slf4j slf4j-api 1.7.12 ch.qos.logback logback-core 1.1.1原创 2017-02-23 00:59:06 · 1606 阅读 · 0 评论 -
Struts2 之 Action类与 jsp 页面的数据交互
使用Struts2标签,需要先在页面中引入Struts2标签库:(标签库的位置在struts2-core-2.3.1.2.jar包中) %@ taglib prefix="s" uri="/struts-tags" %> * Action 类接收数据的三种方式 1.使用Action属性接收 2.使用DomainModel接收 3.使用Mod原创 2017-02-26 22:57:04 · 1757 阅读 · 0 评论 -
struts2 笔记
* 搭建 struts2环境步骤: 1.jar包 2.创建web项目 3.配置文件 4.创建Action 并测试启动 * struts2 提供了3中方式取访问 Servlet API 1.ActionContext 2.实现***Aware接口 3.ServletActionContext * Ac原创 2017-02-24 10:55:40 · 202 阅读 · 0 评论