JavaEE
文章平均质量分 88
kknd713
这个作者很懒,什么都没留下…
展开
-
The Struts dispatcher cannot be found. 使用struts标签时该报错的解决方案
错误场景:条件1:struts2核心过滤器过滤url-pattern为*.action条件2:JSP页面中使用了struts标签条件3:通过url直接访问该JSP页面错误提示:The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associ原创 2013-06-15 20:05:41 · 404 阅读 · 0 评论 -
jsp:forward动作标签无法访问Struts2的Action的解决方案
准备知识:首先我们知道tomcat5.5应用的是Servlet2.4规范,tomcat6.0对应Servlet2.5规范,那么在Servlet2.4中增强了对过滤器(Filter)生效范围的管理,可以通过配置dispatcher节点控制该范围.错误场景:在默认情况下,过滤器只处理来自于客户端发起的请求,也就意味着当你的Struts2中核心过滤器映射的url为*.action,且用转发的原创 2013-06-14 20:33:55 · 794 阅读 · 0 评论 -
Struts2+AJAX+JSON集成
一.准备环境:1.struts 2.1.6(包含6个strut2必备的jar包:commons-fileupload-1.2.1.jar,commons-logging-api-1.1.jar,freemarker-2.3.13.jar,ognl-2.6.11.jar,struts2-core-2.1.6.jar,xwork-2.1.2.jar)2.jquery 1.8.03.json原创 2013-06-17 16:59:47 · 466 阅读 · 0 评论