struts2配置文件(简单)

<?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">
<!-- START SNIPPET: xworkSample -->
<struts>
<constant name="struts.i18n.encoding" value="UTF-8"></constant>
<constant name="struts.devMode" value="true"></constant>

<package name="default" namespace="/" extends="struts-default" >
<interceptors>
<interceptor name="a" class=""></interceptor>
<interceptor-stack name="stack">
<interceptor-ref name="defaultStack"></interceptor-ref>
<interceptor-ref name="a"></interceptor-ref>
</interceptor-stack>
</interceptors>
<action name="*User" class="com.zll.action.UserAction" method="{1}">
<result name="success" type="">index.jsp</result>
<result name="input">index.jsp</result>
</action>
</package>

</struts>

posted @ 2012-08-28 13:19  西瓜霜  阅读(130)  评论(0编辑  收藏  举报