J2EE-UP
j2ee struts spring hibernate
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
posts - 24, comments - 25, trackbacks - 0
<
2008年1月
>
日
一
二
三
四
五
六
30
31
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
常用鏈接
我的隨筆
我的文章
我的評論
我的參與
最新評論
留言簿
(2)
給我留言
查看公開留言
查看私人留言
隨筆分類
html+css(1)
Java(7)
javascript(1)
POI-Excel/Word(3)
Struts2.x(8)
web(4)
隨筆檔案
2011年8月 (1)
2011年7月 (1)
2011年4月 (4)
2010年6月 (1)
2009年4月 (1)
2009年3月 (1)
2009年2月 (1)
2008年12月 (4)
2008年11月 (2)
2008年2月 (5)
2008年1月 (3)
文章檔案
2010年11月 (1)
搜索
最新評論
1.?re: Struts2自定義標簽
大概看懂了,跟那個s標簽一樣用法,只是這里是自己在定義一個標簽來用就是了。
--問問
2.?re: web中使用POI的例子[未登錄]
3333
--a
3.?re: 輸出流下載文件[未登錄]
asdf
--aaa
4.?re: struts2.0的標簽庫(簡介)
樓主,愛死你了。總結的好啊。
--windkiller
5.?re: Struts2自定義標簽[未登錄]
寫得什么啊!亂七八糟的。
--doudou
閱讀排行榜
1.?struts2.0的標簽庫(簡介)(18057)
2.?struts2日期標簽小結(8543)
3.?Struts2自定義標簽(7125)
4.?web中使用POI的例子(4582)
5.?POI簡單應用(word,excel)(3459)
評論排行榜
1.?struts2.0的標簽庫(簡介)(10)
2.?POI簡單應用(word,excel)(5)
3.?Struts2自定義標簽(3)
4.?web中使用POI的例子(2)
5.?struts2日期標簽小結(2)
struts.xml的配置簡介
<!
DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"
>
<
struts
>
<!--
include節點可以將每個功能模塊獨立到一個xml配置文件中然后引用
-->
<
include
file
="struts-default.xml"
></
include
>
<!--
package提供了將多個Action組織為一個模塊的方式
package的名字必須是唯一的 package可以擴展 當一個package擴展自
另一個package時該package會在本身配置的基礎上加入擴展的package
的配置 父package必須在子package前配置
-->
<
package
name
="com"
extends
="struts-default"
namespace
="/test"
>
<
interceptors
>
<!--
定義攔截器
-->
<
interceptor
name
="token"
class
="com.token"
/>
<!--
定義攔截器棧
-->
<
interceptor-stack
name
="defaultStack"
>
<
interceptor-ref
name
="token"
/>
</
interceptor-stack
>
</
interceptors
>
<!--
定義默認的攔截器,如果Action中引用了其它的攔截器 默認的攔截器將無效
-->
<
default-interceptor-ref
name
="token"
/>
<!--
全局results配置
-->
<
global-results
>
<
result
name
="input"
>
/error.jsp
</
result
>
</
global-results
>
<!--
Action配置 一個Action可以被多次映射
-->
<
action
name
="hello"
class
="com.HelloWorld"
>
<!--
引用攔截器
-->
<
interceptor-ref
name
="token"
/>
<!--
節點配置
-->
<
result
name
="success"
type
="dispatcher"
>
/talk.jsp
</
result
>
<!--
參數設置
-->
<
param
name
="url"
>
http://www.aygfsteel.com
</
param
>
</
action
>
</
package
>
</
struts
>
posted on 2008-01-15 16:32
Jarry
閱讀(596)
評論(0)
編輯
收藏
所屬分類:
Struts2.x
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
struts2 下載文件時struts.xml的配置
struts2日期標簽小結
struts2的struts.properties詳解
一個form多個submit的action配置
Struts2自定義標簽
struts.xml的配置簡介
struts2.0的標簽庫(簡介)
實現一個簡單的Struts2.0
Powered by:
BlogJava
Copyright ©2025 Jarry
主站蜘蛛池模板:
淮滨县
|
临洮县
|
黄浦区
|
南阳市
|
万宁市
|
崇阳县
|
渝中区
|
仁化县
|
灌南县
|
金堂县
|
顺义区
|
惠安县
|
康定县
|
马龙县
|
海宁市
|
黑龙江省
|
罗田县
|
永胜县
|
华池县
|
昌宁县
|
南江县
|
八宿县
|
宁乡县
|
京山县
|
南安市
|
房产
|
高雄市
|
江川县
|
文成县
|
岚皋县
|
枣庄市
|
伊宁县
|
分宜县
|
弥勒县
|
柳林县
|
沙洋县
|
临桂县
|
凯里市
|
宣武区
|
合肥市
|
武汉市
|