首页 > 代码库 > struts.xml

struts.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
"http://struts.apache.org/dtds/struts-2.5.dtd">

<struts>
<!--开启动态方法-->
<constant name="struts.enable.DynamicMethodInvocation" value="http://www.mamicode.com/true"></constant>

<package name="user" extends="struts-default" strict-method-invocation="false">
<action name="loginA" class="login.LoginAction">
<result name="success">/success.jsp</result>
<result name="login">/index.jsp</result>
</action>
</package>
</struts>

struts.xml