随笔分类 -  Struts

Struts 2学习笔记——拦截器相关
摘要:一、添加国际化支持 默认的struts-deault.xml文件中已经定义了国际化拦截器,内容如下 <!—定义国际化拦截器--> <interceptor name="i18n" class="com.opensymphony.xwork2.interceptor.I18nInterceptor"/ 阅读全文
posted @ 2016-10-26 14:35 zings 阅读(269) 评论(0) 推荐(0)
Struts2之ModelDriven的使用
摘要:http://www.cnblogs.com/luoyanli/archive/2012/11/20/2778361.html 我们可以根据Action属性的不同将它分为两类:Field-Driven(属性驱动)Action和Model-Driven(模型驱动)Action。 一、Field-Dri 阅读全文
posted @ 2016-04-16 14:00 zings 阅读(249) 评论(0) 推荐(0)
Struts2中的ModelDriven机制及其运用
摘要:http://blog.csdn.net/li_tengfei/article/details/6098145 http://blog.csdn.net/li_tengfei/article/details/6098145 ModelDriven 为什么需要ModelDriven 所谓ModelDr 阅读全文
posted @ 2016-04-16 13:58 zings 阅读(362) 评论(0) 推荐(0)
struts2中的ModelDriven使用
摘要:http://www.cnblogs.com/Topless/archive/2012/01/17/2324980.html 例子都为struts2中的文档例子 JSP提交数据: <s:form action="modelDrivenResult" method="POST" namespace=" 阅读全文
posted @ 2016-04-16 13:58 zings 阅读(374) 评论(0) 推荐(0)
简单理解Struts2中拦截器与过滤器的区别及执行顺序
摘要:Struts2 Struts2 当接收到一个httprequest , a) 当外部的httpservletrequest到来时 b) 初始到了servlet容器 传递给一个标准的过滤器链 c) FilterDispatecher会去查找相应的ActionMapper,如果找到了相应的ActionM 阅读全文
posted @ 2016-04-12 12:51 zings 阅读(304) 评论(0) 推荐(0)
Struts详解
摘要:1.什么是MVC? MVC是Model,View,Controller的缩写,MVC是Application开发的设计模式, 也就是大家所知道的Model2.在MVC的设计模式中,它包括三类对象:(1)模型(Model)对象:是应用程序的主体部分。 (2)视图(View)对象:是应用程序中负责生成用 阅读全文
posted @ 2016-04-12 12:48 zings 阅读(312) 评论(0) 推荐(0)
valuestack,stackContext,ActionContext.之间的关系以及action的数据在页面中取得的方法
摘要:转自:http://blog.csdn.net/quechao123/article/details/4406148 1.三者之间的关系如下图所示: 2.action的数据在页面中取得的方法 在struts2标签内部使用的表达式是%{}为OGNL表达式,在JSP页面中可以使用形式为${}为EL表达式 阅读全文
posted @ 2016-04-12 12:45 zings 阅读(567) 评论(0) 推荐(0)
Struts2中的OGNL详解
摘要:转自:http://blog.csdn.net/tjcyjd/article/details/6850203 首先了解下OGNL的概念: OGNL是Object-Graph Navigation Language的缩写,全称为对象图导航语言,是一种功能强大的表达式语言,它通过简单一致的语法,可以任意 阅读全文
posted @ 2016-04-12 10:15 zings 阅读(337) 评论(0) 推荐(0)