XML代码:
- <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
- <struts>
-
- <include file="struts-default.xml" />
-
- <package name="default" extends="struts-default">
-
-
- <result-types>
- <result-type name="freemarker" class="org.apache.struts2.views.freemarker.FreemarkerResult" default="true" />
- </result-types>
-
-
- <action name="login" class="com.opensymphony.xwork2.ActionSupport">
-
- <result>/Login.ftl</result>
- </action>
- <action name="userInput" class="pro.action.app.UserRegisterAction">
- <interceptor-ref name="createSession">
-
-
- </interceptor-ref>
- <interceptor-ref name="token">
- <param name="excludeMethods">input,back,cancel</param>
- </interceptor-ref>
- <interceptor-ref name="model-driven" />
- <interceptor-ref name="validationWorkflowStack">
-
- <param name="validation.excludeMethods">input,back,cancel</param>
- <param name="workflow.excludeMethods">input,back,cancel</param>
- </interceptor-ref>
- <result name="invalid.token">/doubleSubmit.html</result>
- <result name="input">/app/UserRegister.ftl</result>
- <result name="login">/Login.ftl</result>
- <result name="success">/Login.ftl</result>
- </action>
-
- </package>
- <include file="cfg/struts/struts-filedownload.xml"></include>
- </struts>
posted on 2007-09-23 23:27
jadmin 阅读(64)
评论(0) 编辑 收藏