![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
yt1037921169
呵呵呵
展开
-
struts2 源码解析
首页 开源项目 问答 动弹 博客 翻译 资讯 专题 城市圈 [ 登录 | 注册 ] 返回博客列表 原 struts2请求过程源码分析 2k10 发布时间: 2015/04/01 23:00阅读: 119收藏: 20点赞: 0评论: 0 摘要 str转载 2016-09-13 18:23:08 · 182 阅读 · 0 评论 -
struts2 简单实例
1 . 导入strust2 包 2 web.xml 加入 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* /* 表示所有请求都拦击 3. 建一个class原创 2016-09-14 09:07:19 · 219 阅读 · 0 评论 -
strust2 action跳转问题
1 . 如果是同一个action 中不同方法跳转的话可以直接写方法名称来跳转 如: public String chaxu(){ //实例寰 ShuJUTest sjt = new ShuJUTest(); //jdbc 查询的值返回list Listlist =sjt.selectTest原创 2016-09-14 09:17:00 · 529 阅读 · 0 评论 -
struts2 拦截器
struts2 拦截器只能拦截action , jsp是没法拦截的 , 要拦截接jsp 的话需要用filter 接下来对struts 拦截器说名: 例子: 对方法拦截 需要继承MethodFilterInterceptor public class LanJieQi extends MethodFilterInterceptor { @原创 2016-09-14 10:32:15 · 282 阅读 · 0 评论 -
调用struts2 action 的几种
1 动态调用action 使用的是! 如: http://localhost:8080/struts2Test/login!login struts2Test 项目路径 login action名称 login 是 action的方法名 2 . 使用通配符配置 请求是: http://localhost:8080/struts2Test/l原创 2016-09-14 11:29:17 · 214 阅读 · 0 评论 -
strust2 配置讲解
首先 创建一个Javaee 项目 导入相应 的jar 包 web.xml 里面需要配置的是:原创 2016-09-07 14:06:39 · 172 阅读 · 0 评论