日期:2014-05-17 浏览次数:20733 次
<?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.custom.i18n.resources" value="globalResource" /> <package name="TestSSH" extends="json-default"> <interceptors> <!-- interceptors拦截器 --> <interceptor name="authorization" class="interceptor.AuthorizationInterceptor" /> <interceptor-stack name="myStack"> <interceptor-ref name="authorization"> <param name="ignoreActions"> validate_code,register.*,.*login.* </param> </interceptor-ref> <interceptor-ref name="defaultStack" /> </interceptor-stack> </interceptors> <default-interceptor-ref name="myStack" /> <global-results> <result name="success">/WEB-INF/jsp/result_json.jsp</result> <result name="error">/WEB-INF/jsp/result_json.jsp</result> <result name="login" type="redirectAction">login_page</result> </global-results> <!-- LoginAction类的配置 --> <action name="login" class="action.LoginAction"> <result name="success">main_page.action</result> <result name="input">/WEB-INF/jsp/login.jsp</result> </action> <action name="*_jsp"> <result>/META-INF/jsp/{1}.jsp</result> </action> <!-- RegisterAction类的配置 --> <action name="register" class="action.RegisterAction"> <result name="success">/WEB-INF/jsp/result.jsp</result> <result name="input">/WEB-INF/jsp/register.jsp</result> </action> <!-- CreateDirAction配置文件 --> <action name="crateDir" class="action.CreateDirAction"> <result name="success">/WEB-INF/jsp/create_dir_result.jsp</result> </action> <!-- UploadAction配置文件 --> <action name="upload" class="action.UploadAction"> <result name="success">/WEB-INF/jsp/upload_success.jsp</result> </action> <!-- DownloadFileAction配置文件 --> <action name="downloadFile" class="action.DownloadFileAction"></action> <!-- DownloadMoreFileAction配置文件 --> <action name="downloadMoreFile" class="action.DownloadMoreFileAction"></action> </package> </struts>
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframe