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>
轉(zhuǎn)載于:https://www.cnblogs.com/zonglonglong/archive/2012/08/28/2660092.html
總結(jié)
以上是生活随笔為你收集整理的struts2配置文件(简单)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 学python必会英语单词_Python
- 下一篇: 只运行一个实例的方法