J2EE-UP
j2ee struts spring hibernate
BlogJava
::
首頁
::
新隨筆
::
聯(lián)系
::
聚合
::
管理
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
常用鏈接
我的隨筆
我的文章
我的評(píng)論
我的參與
最新評(píng)論
留言簿
(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)
搜索
最新評(píng)論
1.?re: Struts2自定義標(biāo)簽
大概看懂了,跟那個(gè)s標(biāo)簽一樣用法,只是這里是自己在定義一個(gè)標(biāo)簽來用就是了。
--問問
2.?re: web中使用POI的例子[未登錄]
3333
--a
3.?re: 輸出流下載文件[未登錄]
asdf
--aaa
4.?re: struts2.0的標(biāo)簽庫(簡介)
樓主,愛死你了。總結(jié)的好啊。
--windkiller
5.?re: Struts2自定義標(biāo)簽[未登錄]
寫得什么啊!亂七八糟的。
--doudou
閱讀排行榜
1.?struts2.0的標(biāo)簽庫(簡介)(18057)
2.?struts2日期標(biāo)簽小結(jié)(8543)
3.?Struts2自定義標(biāo)簽(7125)
4.?web中使用POI的例子(4582)
5.?POI簡單應(yīng)用(word,excel)(3458)
評(píng)論排行榜
1.?struts2.0的標(biāo)簽庫(簡介)(10)
2.?POI簡單應(yīng)用(word,excel)(5)
3.?Struts2自定義標(biāo)簽(3)
4.?web中使用POI的例子(2)
5.?struts2日期標(biāo)簽小結(jié)(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節(jié)點(diǎn)可以將每個(gè)功能模塊獨(dú)立到一個(gè)xml配置文件中然后引用
-->
<
include
file
="struts-default.xml"
></
include
>
<!--
package提供了將多個(gè)Action組織為一個(gè)模塊的方式
package的名字必須是唯一的 package可以擴(kuò)展 當(dāng)一個(gè)package擴(kuò)展自
另一個(gè)package時(shí)該package會(huì)在本身配置的基礎(chǔ)上加入擴(kuò)展的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
>
<!--
定義默認(rèn)的攔截器,如果Action中引用了其它的攔截器 默認(rèn)的攔截器將無效
-->
<
default-interceptor-ref
name
="token"
/>
<!--
全局results配置
-->
<
global-results
>
<
result
name
="input"
>
/error.jsp
</
result
>
</
global-results
>
<!--
Action配置 一個(gè)Action可以被多次映射
-->
<
action
name
="hello"
class
="com.HelloWorld"
>
<!--
引用攔截器
-->
<
interceptor-ref
name
="token"
/>
<!--
節(jié)點(diǎn)配置
-->
<
result
name
="success"
type
="dispatcher"
>
/talk.jsp
</
result
>
<!--
參數(shù)設(shè)置
-->
<
param
name
="url"
>
http://www.aygfsteel.com
</
param
>
</
action
>
</
package
>
</
struts
>
posted on 2008-01-15 16:32
Jarry
閱讀(596)
評(píng)論(0)
編輯
收藏
所屬分類:
Struts2.x
新用戶注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關(guān)文章:
struts2 下載文件時(shí)struts.xml的配置
struts2日期標(biāo)簽小結(jié)
struts2的struts.properties詳解
一個(gè)form多個(gè)submit的action配置
Struts2自定義標(biāo)簽
struts.xml的配置簡介
struts2.0的標(biāo)簽庫(簡介)
實(shí)現(xiàn)一個(gè)簡單的Struts2.0
Powered by:
BlogJava
Copyright ©2025 Jarry
主站蜘蛛池模板:
江源县
|
镇江市
|
田林县
|
双峰县
|
清镇市
|
寿光市
|
镇坪县
|
汪清县
|
中山市
|
崇信县
|
凉城县
|
平潭县
|
兰考县
|
渭源县
|
吉木乃县
|
赤壁市
|
开江县
|
松桃
|
香港
|
扎鲁特旗
|
秀山
|
廊坊市
|
砀山县
|
寿阳县
|
内丘县
|
鲜城
|
佛坪县
|
晴隆县
|
安远县
|
伊通
|
齐河县
|
禹州市
|
阿拉善右旗
|
太保市
|
资中县
|
四平市
|
梁平县
|
涞水县
|
社旗县
|
大竹县
|
左贡县
|