I'm happy to live!
Develop with pleasure!
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
::
39 隨筆 :: 2 文章 :: 31 評論 :: 0 Trackbacks
<
2008年12月
>
日
一
二
三
四
五
六
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
公告
天下之事敗于懶與私.
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(6)
給我留言
查看公開留言
查看私人留言
隨筆分類
Diary(11)
(rss)
English 隨筆
(rss)
New Concept English 2(3)
(rss)
programme(9)
(rss)
Star Craft 隨筆(1)
(rss)
日常隨筆(4)
(rss)
電影隨筆(2)
(rss)
隨筆檔案
2015年12月 (1)
2015年10月 (1)
2015年7月 (1)
2015年4月 (1)
2012年11月 (1)
2011年10月 (1)
2011年1月 (2)
2010年12月 (2)
2009年11月 (2)
2009年7月 (2)
2009年5月 (1)
2008年12月 (1)
2008年10月 (1)
2005年12月 (1)
2005年11月 (21)
文章分類
English(1)
(rss)
Programme(1)
(rss)
文章檔案
2005年11月 (2)
相冊
My Family Album
Top Model
收藏夾
軟件收藏(2)
(rss)
友情鏈接
English for Fun(josh)
搜索
最新評論
1.?re: DIV在FF下的拖動
我也不行, 剛看你們說的, 我就在里面加個 ,,,,,湊合著先用著
--憶清風歲月
2.?re: 面試
樓主寫得東西還是挺實用的啊,最近好像沒怎么寫的樣子,呵呵
--linjiang2@163.com
3.?re: DIV在FF下的拖動
不清楚
--tb
4.?re: DIV在FF下的拖動
評論內容較長,點擊標題查看
--星期五
5.?re: 關于時間的一些疑問?
@何楊
建議使用"GMT",用London的話有夏令時問題,夏令時期間就是GMT+1了
--Rene
閱讀排行榜
1.?ResourceBundle讀取資源文件的路徑問題(12356)
2.?重回Frontend!(4644)
3.?Mysql 碰到的問題(3935)
4.?angularjs 1.2.x 不支持動太插入ng-pattern?(2931)
5.?Ajax異步返回方式處理(2183)
評論排行榜
1.?HTML標記(5)
2.?Ajax異步返回方式處理(5)
3.?2005年11月10日(4)
4.?DIV在FF下的拖動(3)
5.?關于時間的一些疑問?(3)
Spring集成Struts時爆servlet action is not available
今天做個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
閱讀(566)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Powered by:
BlogJava
Copyright © Norsor
主站蜘蛛池模板:
宣城市
|
娄底市
|
鄂伦春自治旗
|
遵义市
|
临朐县
|
廉江市
|
牡丹江市
|
河曲县
|
大宁县
|
洪江市
|
芷江
|
新沂市
|
西乌珠穆沁旗
|
昌平区
|
盈江县
|
泾川县
|
珲春市
|
义马市
|
夏邑县
|
亳州市
|
深圳市
|
长葛市
|
永新县
|
绍兴县
|
赣榆县
|
连南
|
赤水市
|
南阳市
|
卢龙县
|
孟连
|
肇庆市
|
绍兴市
|
陇西县
|
岑巩县
|
海林市
|
紫金县
|
河北省
|
资兴市
|
芒康县
|
桐柏县
|
邵东县
|