指定Struts2处理的请求后缀

来源:互联网 发布:淘宝怎么看购物车数量 编辑:程序博客网 时间:2024/04/29 20:36
指定Struts2处理的请求后缀
       <constant name="struts.action.extension" value="do "/>限制处理.do请求.
       <constant name="struts.action.extension" value="do,action"/>处理.do或.action请求.
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"    "http://struts.apache.org/dtds/struts-2.0.dtd"><struts>    <constant name="struts.action.extension" value="do,action"/><package name="he" namespace="/xxx/xxx" extends="struts-default"><action name="list" class="xx.xx.xxx" method="execute"><result name="success">/WEB-INF/jsp/message.jsp</result></action></package></struts>

0 0