<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免费| 亚洲AV人人澡人人爽人人夜夜| 亚洲精品在线免费观看视频| 久久九九全国免费| 成人免费777777| 亚洲成AV人片在线观看无 | 亚洲va在线va天堂va不卡下载| 亚洲综合一区国产精品| 国产黄在线观看免费观看不卡| 国产无人区码卡二卡三卡免费 | 久久狠狠躁免费观看2020| 亚洲成A人片在线观看无码不卡| 亚洲Aⅴ在线无码播放毛片一线天| 少妇性饥渴无码A区免费 | 破了亲妺妺的处免费视频国产| 久久精品九九亚洲精品天堂| 永久免费av无码网站yy| 91在线亚洲精品专区| 久久免费观看视频| 亚洲国产精品无码专区| 国产h视频在线观看网站免费| 国精无码欧精品亚洲一区 | 亚洲国产精品无码专区| 香蕉视频免费在线| 成年在线网站免费观看无广告 | 激情综合亚洲色婷婷五月| 在线免费一区二区| sihu国产精品永久免费| 亚洲性天天干天天摸| 99re热免费精品视频观看| 噜噜噜亚洲色成人网站∨| 在线观看免费毛片| 少妇性饥渴无码A区免费| 久久久青草青青国产亚洲免观| 亚洲国产精品日韩av不卡在线| 国产日本一线在线观看免费| 亚洲精品在线播放视频| 国产18禁黄网站免费观看|