struts-config.xml

本文详细介绍了如何使用Struts框架进行文件资源管理和控制,包括配置文件、操作流程及前后端交互细节。
 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
          "http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
	<!-- 测试 -->
    	<action-mappings>
	        <action path="/ibusAction" scope="request" validate="false" 
	        	    type="com.smart.ibus.client.web.IBUSAction" parameter="method">
	            <forward name="ibusSuccess" path="/ibusSuccess.jsp"></forward>
	            <forward name="ibusFailure" path="/ibusFailure.jsp"></forward>
	        </action>
	        
	        <action path="/BOControllerAction" scope="request" validate="false" 
	        	    type="com.smart.ibus.client.web.BOControllerAction" parameter="method">
	            <forward name="success" path="/layout_attribute.jsp"></forward>
	            <forward name="failure" path="/ibusFailure.jsp"></forward>
	        </action>
	        
	        <!-- 文件资源管理控制类 -->
			<action path="/FileMgrAction" scope="request" validate="false"
				type="com.smart.ibus.client.web.FileMgrAction" parameter="method">
				<forward name="success" path="/layout_attribute.jsp"></forward>
				<forward name="failure" path="/ibusFailure.jsp"></forward>
			</action>
			
			<!-- 文件上传 -->
			<action path="/upload" scope="request" validate="false" type="com.smart.ibus.ap.components.impl.FileManagerAction" parameter="method">
				<forward name="download" path="/components/upload/download.jsp" />
				<forward name="success"  path="/components/upload/success.jsp" />
			</action>
	        
            <action path="/InvokerAction"  type="com.smart.ibus.ap.components.invokerclient.InvokerTestAction" />
	        <action path="/TaskAction"  type="com.smart.ibus.ap.components.taskclient.TaskTestAction" />
	        
    	</action-mappings>
    	<message-resources parameter="" />
</struts-config>      
    

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值