ssh整合中的问题

<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>

 

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
	<data-sources />
	<form-beans>
		<form-bean name="registForm" type="com.yidu.action.form.RegistForm" />
	</form-beans>

	<global-exceptions />
	<global-forwards />
	<action-mappings>
		<action attribute="registForm" input="/regist.jsp" name="registForm"
			path="/regist" scope="request" type="com.yidu.action.RegistAction">
			<set-property property="cancellable" value="true" />
			<forward name="suc" path="/login.jsp" />
			<forward name="error" path="/regist.jsp" />
		</action>
	</action-mappings>
	<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>
	<message-resources parameter="com.yidu.action.ApplicationResources" />
	<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
		<set-property value="/WEB-INF/classes/applicationContext.xml"
			property="contextConfigLocation" />
	</plug-in>
</struts-config>

 

   当SSH整合之后<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>
占用的中心控制器扩充功能,controller?只能有一个中心控制器不能实现RequestProcessor进行扩充

《1》可以采取另外几种方式比如:dispatchAction 动态Action 去掉execute方法写入别的多种方法上面配置文件当中加入一个pram..属性参数对应jsp隐藏表单域里面的加入的一个相关方法的键值对

《2》加入过滤器进行扩展,加入相关方法 也可以间接的扩充功能

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值