---
title: "ssh 整合"
author: "yeer"
date: "2009-10-13T14:52:58Z"
tags: []
slug: "ssh"
draft: false
lastmod: "2009-10-13T14:52:58Z"
id: 486988
url: "https://yeer.iteye.com/blog/486988"
---

1、struts、spring整合

     修改struts-config中action标签的type属性值，原来该属性值为请求要调用的action文件，现在改为用代理，值为：org.springframework.web.struts.DelegatingActionProxy

2、添加  

&lt;plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"&gt;  
  &lt;set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" /&gt;  
&lt;/plug-in&gt;

3、在applicationContext.xml文件中添加

 &lt;bean name="/login" class="web.struts.action.LoginAction"&gt;  
 &lt;property name="service"&gt;  
 &lt;ref bean="service" /&gt;  
 &lt;/property&gt;  
 &lt;/bean&gt;

这一步表明login请求将要到达的action。property中的name值为