<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)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 免费看成人AA片无码视频吃奶| 免费a级毛片永久免费| 特级做a爰片毛片免费看| 亚洲成人在线免费观看| 亚洲熟妇中文字幕五十中出| 最新69国产成人精品免费视频动漫 | 亚洲一级二级三级不卡| 亚洲人成电影在线播放| 大香人蕉免费视频75| 222www免费视频| 中文字幕免费观看全部电影| 午夜亚洲乱码伦小说区69堂| 日韩亚洲国产高清免费视频| 亚洲综合图片小说区热久久| 亚洲国产精品无码专区在线观看| 亚洲Av无码乱码在线播放| 午夜免费福利在线观看| 青娱乐免费视频在线观看| 2021精品国产品免费观看| 久久精品视频免费看| 成人片黄网站色大片免费观看APP| 日韩一区二区三区免费播放| 日韩精品亚洲专区在线影视| 亚洲人成欧美中文字幕| 亚洲成A人片在线播放器| 亚洲黄色激情视频| 亚洲国产成人久久三区| 亚洲欧洲中文日产| 亚洲网址在线观看| 亚洲精品一卡2卡3卡三卡四卡| 亚洲AV天天做在线观看| 亚洲AV无码AV男人的天堂| 亚洲avav天堂av在线不卡| 水蜜桃亚洲一二三四在线| 无码乱人伦一区二区亚洲| 久久亚洲私人国产精品| 久久亚洲AV无码精品色午夜| 亚洲日韩在线视频| 国产成人精品日本亚洲直接| 亚洲w码欧洲s码免费| 亚洲欧美国产精品专区久久|