Struts2-配置详解-实例.pptVIP

  • 5
  • 0
  • 约6.17千字
  • 约 24页
  • 2016-11-14 发布于河南
  • 举报
王荣芳 wangrongfang2008@ Struts2 配置详解-实例 学员的潜力,青软的动力 Struts2框架主要配置文件 web.xml 1 过滤器配置:路径一般使用/*, 问题:但是当请求servlet及dwr框架等时,也都被struts框架过滤了,请求根本到不了dwr框架或者servlet 解决方案在struts.xml中配置不经过struts过滤的路径: constant name= struts.action.excludePattern value=“/dwr/.*, /servlet/.*,/ 2 如果使用*.action 问题:则页面上使用了struts标签后会发生异常: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. 解决方案再配置*.jsp经过struts过滤器 url-pattern*.action/url-pattern url-pattern*.jsp/url-pattern struts.xml和perties struts.xml文件主要负责管理应用中的action映射,以及该Action中包含的result定义等。 perties通常放在WEB应用下的

文档评论(0)

1亿VIP精品文档

相关文档