<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE struts PUBLIC
|
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
|
"http://struts.apache.org/dtds/struts-2.1.dtd">
|
<struts>
|
<!-- 配置开发模式 -->
|
<constant name="struts.devMode" value="false"></constant>
|
|
<constant name="struts.custom.i18n.resources" value="global"/>
|
|
<constant name="struts.multipart.maxSize" value ="1024000000" />
|
|
<package name="default" namespace="/" extends="json-default" >
|
|
<action name="CheckClientAction_check" class="com.fgkj.actions.CheckClientAction" method="check">
|
<result name="none" type="redirect">/login.jsp</result>
|
<result name="success" type="redirect">/mobil/loginm.html</result>
|
</action>
|
|
<action name="LoginAction_*" class="com.fgkj.actions.LoginAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
|
<action name="UserAction_*" class="com.fgkj.actions.UserAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="RoleLimitAction_*" class="com.fgkj.actions.RoleLimitAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="UserRoleAction_*" class="com.fgkj.actions.UserRoleAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="RolesAction_*" class="com.fgkj.actions.RolesAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="LimitAction_*" class="com.fgkj.actions.LimitAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="BattInfAction_*" class="com.fgkj.actions.BattInfAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="Batt_rtdataAction_*" class="com.fgkj.actions.Batt_rtdataAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="Batt_rtstateAction_*" class="com.fgkj.actions.Batt_rtstateAction" method="{1}">
|
<result type="json"/>
|
</action>
|
<action name="Batttestdata_infAction_*" class="com.fgkj.actions.Batttestdata_infAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="BatttestdataAction_*" class="com.fgkj.actions.BatttestdataAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="BatttestdatastopAction_*" class="com.fgkj.actions.BatttestdatastopAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="Batt_param_lowAction_*" class="com.fgkj.actions.Batt_param_lowAction" method="{1}">
|
<result type="json"/>
|
</action>
|
|
<action name="Batt_maintenance_infAction_*" class="com.fgkj.actions.Batt_maintenance_infAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="BattresdataAction_*" class="com.fgkj.actions.BattresdataAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="Battresdata_infAction_*" class="com.fgkj.actions.Battresdata_infAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="User_jiejiariAction_*" class="com.fgkj.actions.User_jiejiariAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="User_infAction_*" class="com.fgkj.actions.User_infAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="Batt_Maint_DealarmAction_*" class="com.fgkj.actions.Batt_Maint_DealarmAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="I18nAction_*" class="com.fgkj.actions.I18nAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="Batt_maint_infAction_*" class="com.fgkj.actions.Batt_maint_infAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="Hard_dev_sms_stateAction!*" class="com.fgkj.actions.ram.Hard_dev_sms_stateAction" method="{1}">
|
<result type="json"></result>
|
</action>
|
|
<action name="*_61850action_*" class="com.fgkj.actions.bts61850.{1}" method="{2}">
|
<result type="json"></result>
|
</action>
|
|
<action name="*_ld9action_*" class="com.fgkj.actions.Ld9.{1}" method="{2}">
|
<result type="json"></result>
|
</action>
|
|
<action name="*_ramaction_*" class="com.fgkj.actions.ram.rt.{1}" method="{2}">
|
<result type="json"></result>
|
</action>
|
|
<action name="*_media_*" class="com.fgkj.actions.media.{1}" method="{2}">
|
<result type="json"></result>
|
</action>
|
|
<action name="*_action_*" class="com.fgkj.actions.ram.{1}" method="{2}">
|
<result type="json"></result>
|
</action>
|
|
<action name="*!*" class="com.fgkj.actions.{1}" method="{2}">
|
<result type="json"></result>
|
</action>
|
|
|
|
<action name="FileUploadAction" class="com.fgkj.actions.FileUploadAction">
|
<result type="stream">
|
<param name="contentType">application/octet-stream</param>
|
<param name="inputName">inputStream</param>
|
<param name="contentDisposition">attachment;filename=${filename}</param>
|
<param name="bufferSize">4096</param>
|
</result>
|
</action>
|
</package>
|
<package name="p1" namespace="/" extends="struts-default">
|
<result-types>
|
<!-- 用于处理下载文件点击取消时报出异常问题 -->
|
<result-type name="streamx" class="com.sunspoter.lib.web.struts2.dispatcher.StreamResultX"></result-type>
|
</result-types>
|
<action name="FileDownloadAction" class="com.fgkj.actions.FileDownloadAction">
|
<result type="streamx">
|
<param name="contentType">application/octet-stream</param>
|
<!-- 设置返回的输入流,在对应的Action中要有对应的getDownloadFile方法 -->
|
<param name="inputName">downloadFile</param>
|
<!-- 设置下载时文件的名称,对应Action中药有filename属性 -->
|
<param name="contentDisposition">attachment;filename=${filename}</param>
|
<!-- 设置缓冲区大小4k -->
|
<param name="bufferSize">4096</param>
|
<!-- 下载时显示下载文件的大小,Action中要有对应的String类型的属性contentLength -->
|
<param name="contentLength">${contentLength}</param>
|
</result>
|
</action>
|
</package>
|
</struts>
|