<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    I'm happy to live!

    Develop with pleasure!

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      39 隨筆 :: 2 文章 :: 31 評論 :: 0 Trackbacks
    今天做個spring和struts的集成Demo,我用的是myeclipse6.5,導入spring框架和struts框架都相當方便,一切就序后,開tomcat,跑吧,相當的不爽,第一個鏈接就爆: servlet action is not available,什么意思啊,難道我的配置文件沒配對?檢查了沒天也沒發現什么問題.
    以下是我的struts  的struts-config.xml:
    <struts-config>
        
    <data-sources />
        
    <form-beans />
        
    <global-exceptions />
        
    <global-forwards />

        
    <action-mappings>
            
    <action path="/hello" type="com.laxxx.struts.action.Hello">
                
    <forward name="hello" path="/hello.jsp" />
            
    </action>
        
    </action-mappings>

        
    <controller
            
    processorClass="org.springframework.web.struts.DelegatingRequestProcessor" />


        
    <message-resources
            
    parameter="com.laxxx.struts.ApplicationResources" />


        
    <plug-in
            
    className="org.springframework.web.struts.ContextLoaderPlugIn">

            
        
    <set-property property="contextConfigLocation"
                value
    ="/WEB-INF/applicationContext.xml" />
        
    </plug-in>
    </struts-config>

    以下是spring的applicationContext.xml:
    <beans 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">

        
    <bean name="/hello" class="com.laxxx.struts.action.Hello">

        
    </bean>
    </beans>

    看了又看找了又找,還是沒看出問題,把struts-config中關于spring兩段配置去掉后,單跑struts是沒問題的,看來很有可能myeclipse沒把包導全啊,可能沒找到,發現好多人都中過此招,有些包沒找到spring的代理請求處理類或者是沒找到初始化spring上下文的插件類,這兩個類都在spring.jar中,于是把這個jar包放入lib目錄中去,重啟tomcat... ... 再點,ok,終于到應該去的地方了.
    posted on 2008-12-04 17:19 Norsor 閱讀(562) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 免费国产污网站在线观看不要卡| 久久91亚洲人成电影网站| 亚洲国产成人精品久久| 国内精品免费麻豆网站91麻豆| 亚洲精品无码MV在线观看 | 亚洲中文字幕在线观看| 免费无码又爽又黄又刺激网站| 国产精品国产免费无码专区不卡 | 9277手机在线视频观看免费| 亚洲va在线va天堂va不卡下载| 七色永久性tv网站免费看| 亚洲综合无码一区二区| 亚洲黄色免费网址| 在线精品亚洲一区二区 | 中文字幕精品亚洲无线码二区 | 99re在线这里只有精品免费| 亚洲日本一区二区| 69成人免费视频| 亚洲第一第二第三第四第五第六 | 亚洲日韩精品无码专区网址| 精品在线免费观看| 亚洲成aⅴ人片在线观| 手机在线免费视频| 免费一级特黄特色大片| 亚洲AV无码乱码在线观看裸奔| 足恋玩丝袜脚视频免费网站| 亚洲综合一区国产精品| 免费真实播放国产乱子伦| 久久久久国色AV免费观看| 亚洲一区中文字幕久久| 毛片a级毛片免费播放100| 人妻仑刮八A级毛片免费看| 亚洲av无码国产精品色午夜字幕| 成人浮力影院免费看| 国产AV无码专区亚洲AV蜜芽 | 国产亚洲精品a在线无码| 亚洲成人免费电影| 美女又黄又免费的视频| 久久精品国产精品亚洲艾| 成熟女人特级毛片www免费| 国产在线观看无码免费视频|