ssh整合中的问题
<controller processorencoding="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 processor/><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》加入过滤器进行扩展,加入相关方法 也可以间接的扩充功能