2012年6月29日
摘要: 使用过struts2的都应该会深深地喜欢它为我们提供的这种转换方式,为我们对于表单提交的处理变得更加的简单借助内置的类型转换,struts2可以完成字符串和基本类型之间的转换,只需要提供属性对应的set方法即可,而不需要像在servlet中一样使用request.getParameter("xx");来获取表单提交的信息更加完美的是:借助于ONGL表达式的支持,struts2还可以经过简单的处理来将请求参数转化为复合类型,这对于属性众多的复合对象真是天助;看下面的实例:注册的表单:register.jsp<s:form action ="douserreg& 阅读全文
posted @ 2012-06-29 16:43 发表是最好的记忆 阅读(3195) 评论(1) 推荐(1) 编辑
摘要: 异常信息: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 发表是最好的记忆 阅读(15526) 评论(2) 推荐(1) 编辑