webwork 中 external-ref 和interceptor-ref 共同用出现问题

06-04-20 lp446541401
我配置了一个文件拦截器
<interceptor name="upload" class="com.opensymphony.webwork.interceptor.FileUploadInterceptor"/>
<interceptor-stack name="uploadStack">
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="upload"/>
</interceptor-stack>
但在aciton中如果单独用external-ref 或interceptor-ref 运行程序时都不出错,但两个合在一起就出错。
<action class="com.chinabankpay.action.ManagerAction" name="addbacktender" method="addbacktender">
<external-ref name="managerservice">managerservice</external-ref>
<result name="success">listbacktender.htms</result>
<result name="error" type="chain">
<param name="actionName">error</param>
</result>
<interceptor-ref name="uploadStack"/>
</action>

lp446541401
2006-04-20 15:50
这是拦截器的配置
<interceptor name="upload" class="com.opensymphony.webwork.interceptor.FileUploadInterceptor"/> 
			<interceptor-stack name="uploadStack"> 
				<interceptor-ref name="defaultStack"/> 
				<interceptor-ref name="upload"/>                				
			</interceptor-stack>  
<p class="indent">

这是action的配置
<action class="com.chinabankpay.action.ManagerAction" name="addbacktender" method="addbacktender">
			<external-ref name="managerservice">managerservice</external-ref>	
			<result name="success">listbacktender.htms</result> 
			<result name="error" type="chain">
				<param name="actionName">error</param>
			</result>
			<interceptor-ref name="uploadStack"/> 
		</action> 
<p class="indent">

猜你喜欢