kenanp 2009-10-07 14:21
浏览 174

spring+struts

请教 高 人 spring + struts 时候tomcat无法启动

去掉红色的部分才能启动tomcat

下面是sturts配置文件

<?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">







type= "com.advertisement.login.action.LoginAction"
name = "loginForm"
validate="false"
input = "/login1.jsp">


[color=red]



[/color]

下面是spring配置文件

<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">






class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">




com.advertisement.login.dao/Login.hbm.xml



<bean id="LoginDAO" class="com.advertisement.login.dao.LoginDAO">
    <property name="sessionFactory">
        <ref bean="sessionFactory"></ref>
    </property>
</bean>

<bean id = "facadeManager"  class = "com.advertisement.login.manager.FacadeManager">
<property name = "loginDAO" ref = "LoginDAO"/>
</bean>

<bean name = "/loginAction"  class = "com.advertisement.login.action.LoginAction">
<property name = "facadeManager"  ref = "facadeManager"/>
</bean>

</beans>
  • 写回答

2条回答 默认 最新

  • fruitboy2005 2009-10-08 15:33
    关注







    :lol: :wink: :oops: :oops: :oops: :oops:

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器