struts2 的ajax 請求處理
阿新 • • 發佈:2019-02-13
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<package name="default" namespace="/" extends="struts-default,json-default ">
<action name="login" class="com.lucas.action.AjaxAction">
<result type="json">
<param name="root">jsonResult</param>
</result>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
</package>
</struts>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<package name="default" namespace="/" extends="struts-default,json-default
<action name="login" class="com.lucas.action.AjaxAction">
<result type="json">
<param name="root">jsonResult</param>
</result>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
</package>
</struts>