![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
文章平均质量分 83
iteye_16094
这个作者很懒,什么都没留下…
展开
-
struts2 中 OGNL表达式的使用
GNL是Object Graph Navigation Language的简称,详细相关的信息可以参考:http://www.ognl.org。这里我们只涉及Struts2框架中对OGNL的基本支持。 Struts 2默认的表达式语言是OGNL,原因是它相对其它表达式语言具有下面几大优势: 1. 支持对象方法调用,如xxx.doSomeSpecial(); 2. 支持类静态的方法调用和...原创 2011-06-29 15:22:15 · 63 阅读 · 0 评论 -
struts2.1.8.1+jquery1.4.2返回json数据
1、引入包(本文中的包全部引自struts-2.1.8.1\lib): struts2-json-plugin-2.1.8.1.jar json-lib-2.1.jar commons-collections-3.2.jar commons-beanutils-1.7.0.jar commons-lang-2.3.jar commons-logging-1.0.4.jar ezmorph-1.0....原创 2011-06-29 15:23:28 · 70 阅读 · 0 评论 -
struts2中freemarker访问request session Application parameter对象
使用Request里的Attribute值最简单的方法就是直接${AttributeName}或者安全一点:${AttributeName!"default Value"}1.取Application范围的对象xml 代码 1. <#if Application.myApplicationAttribute?exists> 2. ${Applicat...原创 2011-12-07 19:12:47 · 75 阅读 · 0 评论 -
简述Struts2 Convention零配置
简述Struts2 Convention零配置从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行配置,甚至不需要使用Annotation进行配置,而是由struts2...原创 2011-12-16 17:23:06 · 117 阅读 · 0 评论 -
继承struts2中StrutsTypeConverter实现类型转换
1. 创建含有需要类型转化对象的JSP页面(input.jsp,里面表单里含有自定义类)<body> <h3><font color="red">使用逗号将点的两个坐标分隔开</font></h3> <s:form action="Register"> <s:textfield na原创 2012-01-13 13:30:33 · 137 阅读 · 0 评论 -
继承ognl中DefaultTypeConverter实现类型转换
1. 创建含有需要类型转化对象的JSP页面(input.jsp,里面表单里含有自定义类)<body> <h3><font color="red">使用逗号将点的两个坐标分隔开</font></h3> <s:form action="Register">原创 2012-01-13 13:32:14 · 297 阅读 · 0 评论