struts2标签应用 需在web.xml中 配置
来源:互联网 发布:淘宝游戏包 编辑:程序博客网 时间:2024/05/18 17:57
1.在jsp页面上直接使用struts2的s标签,要求必须经过FileterDispatcher过滤,否则总会报错
org.apache.jasper.JasperException: 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.
解决办法:
org.apache.jasper.JasperException: 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.
解决办法:
- <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>*.action</url-pattern><!--过滤主要操作 --> //action中用到
- </filter-mapping>
- <filter-mapping>
- <filter-name>struts2</filter-name> //jsp页面中,struts2标签需要用到
- <url-pattern>*.jsp</url-pattern>
- <!--因为若在jsp页面使用struts标签,就必须经过FilterDispacher的过滤,这样配置便可保证所有的jsp都经过FilterDispatcher了,否则要为每一个jsp写配置一个action地址转入-->
- </filter-mapping>
- struts2标签应用 需在web.xml中 配置
- struts2在web.xml中配置详情
- struts2在web.xml中配置详解
- web.xml中配置struts2
- AjaxAnywhere在struts2中Web.xml的配置
- 关于Struts2 在web.xml中配置改变的问题
- 在web.xml中为Struts2配置拦截器
- Struts2在web.xml中的配置
- 关于Struts2在web.xml中的配置
- struts2在web.xml中的基本配置
- struts2在web.xml中的配置记录
- 在struts2第一个应用中,struts.xml的struts标签内的代码
- web.xml中配置<error-page>标签
- struts2 web.xml中无法配置taglib
- struts2中web.xml的配置
- struts2中web.xml的启动配置
- struts2中web.xml的配置
- struts2中web.xml主要配置
- 奇异值分解(SVD)详解
- hdu 1279 验证角谷猜想
- 使用系统的动画(点击切换界面)
- javax.crypto.Cipher类提供加密和解密功能
- iBatis操作CLOB数据
- struts2标签应用 需在web.xml中 配置
- POJ 3241 Object Clustering (曼哈顿距离最小生成树)
- SDWebImage手动清除缓存的方法
- zend debugger安装配置
- 利用LNMP搭建wordpress
- ios7-录音权限访问-AVAudioSession
- 有关sleep runloop
- 搭建Linux下邮件服务器(extmail+postfix+clamav)
- android面试题总结加强再加强版(二)