
Struts2
文章平均质量分 66
x1n1010
这个作者很懒,什么都没留下…
展开
-
OGNL表达式struts2标签“%,#,$”
一、什么是OGNL,有什么特点? OGNL(Object-Graph Navigation Language),大概可以理解为:对象图形化导航语言。是一种可以方便地操作对象属性的开源表达式语言。OGNL有如下特点: 1、支持对象方法调用,形式如:objName.methodName(); 2、支持类静态的方法调用和值访问,表达式的格式为@[类全名(包括包路)]@[方法名| 值名],转载 2013-11-17 20:27:27 · 609 阅读 · 0 评论 -
在 Struts2 的 Action 中获得选中的 checkbox 的 value
在 Struts2 的 Action 中怎样获取表单提交上来的多个 checkbox 的值呢?其实在 Action 中获得的是一个 String 型数据,每一个被选中的 checkbox 的 value 被拼接在一起,每个值之间以逗号隔开(,)。所以在 Action 中定义一个跟 checkbox 的 name 同名的属性来接收这些被选中的 checkbox 的 value 即可。以下转载 2013-12-08 17:51:50 · 997 阅读 · 0 评论 -
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the assoc
问题描述:The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Strut s tags are only usable when the request has passed through its servlet f转载 2014-03-03 14:42:18 · 971 阅读 · 0 评论 -
httpservlet, struts1, struts2线程安全,单实例,多实例几个关系
以下内容转自:http://blog.163.com/xiangfei209@126/blog/static/986956742011924114042741/总结如下线程安全条件:1)常量始终是线程安全的,因为只存在读操作。 2)对构造器的访问(new 操作)是线程安全的,因为每次都新建一个实例,不会访问共享的资源。 3)最重要的是:局部变量是线程安全的。因为每执行一个方法,转载 2014-12-22 16:36:52 · 688 阅读 · 0 评论