随笔 - 188  文章 - 1  评论 - 273  阅读 - 189万

随笔分类 -  struts2

struts2--java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of
摘要:这个问题是我碰到的一个比较纠结的问题,如果第一次碰到肯定能让你也很纠结,哈哈[c-sharp] view plaincopyprint?01.2010-10-19 18:27:22 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn 02.警告: Error setting expression 'nnew.nTitle' with value '[Ljava.lang.String;@df804e' 03.ognl.NoSuchPropertyException: com.center.vo.News 阅读全文
posted @ 2013-05-16 17:32 发表是最好的记忆 阅读(10071) 评论(0) 推荐(0) 编辑
构建struts2项目需要使用的最少架包
摘要:以前一直沿用SSH三大框架,今天有个项目只使用了struts2,在架包冲突方面还是花了不少时间, 阅读全文
posted @ 2013-01-21 11:18 发表是最好的记忆 阅读(464) 评论(0) 推荐(0) 编辑
struts2 基于OGNL的类型转换
摘要:使用过struts2的都应该会深深地喜欢它为我们提供的这种转换方式,为我们对于表单提交的处理变得更加的简单借助内置的类型转换,struts2可以完成字符串和基本类型之间的转换,只需要提供属性对应的set方法即可,而不需要像在servlet中一样使用request.getParameter("xx");来获取表单提交的信息更加完美的是:借助于ONGL表达式的支持,struts2还可以经过简单的处理来将请求参数转化为复合类型,这对于属性众多的复合对象真是天助;看下面的实例:注册的表单:register.jsp<s:form action ="douserreg& 阅读全文
posted @ 2012-06-29 16:43 发表是最好的记忆 阅读(3197) 评论(1) 推荐(1) 编辑
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. 异常
摘要:异常信息:The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag.环境:tomcat 6.0 struts2.21web.xml的配置: . 阅读全文
posted @ 2012-06-29 15:09 发表是最好的记忆 阅读(15539) 评论(2) 推荐(1) 编辑


点击右上角即可分享
微信分享提示