首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ssh整合中的有关问题

2012-07-31 
ssh整合中的问题controller processorencodingUTF-8?!DOCTYPE struts-config PUBLIC -//Apache Sof

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》加入过滤器进行扩展,加入相关方法 也可以间接的扩充功能

热点排行