关于SSH的配置问题
2008-01-04 14:55
211 查看
1.配置监听器( web.xml)
< listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>自己spring的xml路径</param-value>
</context-param>
2.struts +srping +hibernate的结合
在struts-config中的Action中把type属性的值指向spring的DelegatingActionProxy类
eg:
<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
在spring中注入strut和hibernate
<bean name="/login" class="com.der.struts.action.LoginAction">
<property name="user">
<ref bean="UserDAO"/>
</property>
< listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>自己spring的xml路径</param-value>
</context-param>
2.struts +srping +hibernate的结合
在struts-config中的Action中把type属性的值指向spring的DelegatingActionProxy类
eg:
<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
在spring中注入strut和hibernate
<bean name="/login" class="com.der.struts.action.LoginAction">
<property name="user">
<ref bean="UserDAO"/>
</property>
相关文章推荐
- 关于ssh中,注解配置多对一或者一对多的时候,字段不识别问题
- 关于CentOS7配置SSH免密登录,以及遇到的配置好后还需要输入密码的问题
- 关于ssh 框架 applicationContext.xml文件中配置hibernate数据库出现的一个小问题
- Ubuntu下的重要的3个问题:ssh、ftp、权限的配置
- 关于面试中常遇到的与框架(SSM、SSH)有关的问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于x265配置了rc.bStrictCbr =1不能进行编码的问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- Shiro整合SSH开发3:配置Shiro认证后页面地址跳转问题(和详述不配置须要注意的问题)
- 关于Apache2.4限制目录访问配置的问题
- 关于expect使用ssh的问题
- 【linux环境配置】关于eclipse配置tomcat服务的一个问题
- 使用SSH关于转义问题
- 关于javamelody配置后,工程出错问题
- 关于dubbo服务的xml配置文件报错的问题
- 关于nginx配置成功后,无法访问的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于在Spring Cloud Feign工程中使用Ribbon配置不生效的问题
- 关于配置到dbca输入密码时提示could not validate asmsnmp password ora-12541:no listener的问题
- 今日总结:错误码配置,关于TXT文件下载问题