The Struts dispatcher cannot be found在struts2中出现的问题
来源:互联网 发布:测斜仪数据计算 编辑:程序博客网 时间:2024/04/30 21:26
The Struts dispatcher cannot be found在struts2中出现的问题
The Struts dispatcher cannot be found在struts2中出现的问题
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. - [unknown location]
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:44)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:48)
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:44)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:48)
解决办法:
1.引入
<%@ taglib prefix="s" uri="/struts-tags" %>
2.在web.xml中未将拦截的*.action改成/*
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
一般第二种 情况比较多。是没有改WEB.XML中的拦截
0 0
- the Struts dispatcher cannot be found. 在struts2中出现的问题
- The Struts dispatcher cannot be found在struts2中出现的问题
- The Struts dispatcher cannot be found在struts2中出现的问题
- The Struts dispatcher cannot be found在struts2中出现的问题
- The Struts dispatcher cannot be found在struts2中出现的问题
- 解决struts2中UI标签出现的问题: The Struts dispatcher cannot be found
- Struts2-The Struts dispatcher cannot be found
- Struts2.0的异常 The Struts dispatcher cannot be found.
- The Struts dispatcher cannot be found. 在页面使用struts2的标签时报的异常
- struts2 异常信息:The Struts dispatcher cannot be found.
- struts2常见标签异常:The Struts dispatcher cannot be found.
- struts2.0 下The Struts dispatcher cannot be found 解决方法
- struts2错误:The Struts dispatcher cannot be found.
- struts2错误:The Struts dispatcher cannot be found.
- struts2错误:The Struts dispatcher cannot be found.
- struts2错误:The Struts dispatcher cannot be found.
- struts2错误:The Struts dispatcher cannot be found.
- struts2标签 The Struts dispatcher cannot be found
- linux下mysql-5.5.27.tar.gz源程序包安装实例
- 需求分期三步走
- C#中JSON数组填充给Combox控件
- 叶君—国画大师笔下的“忠义千秋”
- mysql必知必会 第十三章 分组数据
- The Struts dispatcher cannot be found在struts2中出现的问题
- 叶君.画梅大师
- c++程序!
- C++ using namespace std 详解
- mysql5.5.28.tar.gz编译安装操作笔记
- Linux学习笔记(一)
- 三种继承
- Python网络爬虫4 ---- Linux下编写最简单的scrapy网络爬虫项目
- c++的一些 细节!