<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 閱讀(567) 評論(0)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 日韩免费视频播放| 亚洲AV无码一区二区乱孑伦AS| 免费大黄网站在线观看| 亚洲小说图区综合在线| 毛片免费在线观看网址| 中文字幕 亚洲 有码 在线| 国产1024精品视频专区免费| 亚洲成A∨人片在线观看无码| 亚洲av乱码中文一区二区三区 | 国产亚洲精品美女久久久| 免费夜色污私人影院网站电影| 99久久国产免费-99久久国产免费| 高清国语自产拍免费视频国产| 久久99国产亚洲精品观看| 亚洲av午夜电影在线观看| 蜜臀91精品国产免费观看| 美女啪啪网站又黄又免费| 亚洲女人被黑人巨大进入| 在线免费播放一级毛片 | 亚洲人色婷婷成人网站在线观看 | jzzjzz免费观看大片免费| 免费三级毛片电影片| 国产亚洲一区二区三区在线观看| 亚洲人av高清无码| 91久久精品国产免费一区| 亚洲中文字幕一二三四区苍井空 | 免费国产在线观看不卡| 一级做a爱片特黄在线观看免费看 一级做a爱过程免费视 | 在线毛片片免费观看| 亚洲网址在线观看| 免费视频中文字幕| 中文字幕a∨在线乱码免费看 | 国产成人亚洲精品青草天美| 91久久精品国产免费直播| MM1313亚洲国产精品| 亚洲精品自在在线观看| 免费无码午夜福利片 | 99热亚洲色精品国产88| 182tv免费视视频线路一二三| 不卡精品国产_亚洲人成在线| 菠萝菠萝蜜在线免费视频|