J2EE-UP
j2ee struts spring hibernate
BlogJava
::
首頁
::
新隨筆
::
聯(lián)系
::
聚合
::
管理
posts - 24, comments - 25, trackbacks - 0
<
2008年11月
>
日
一
二
三
四
五
六
26
27
28
29
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
1
2
3
4
5
6
常用鏈接
我的隨筆
我的文章
我的評論
我的參與
最新評論
留言簿
(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自定義標(biāo)簽
大概看懂了,跟那個s標(biāo)簽一樣用法,只是這里是自己在定義一個標(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)簽庫(簡介)(18071)
2.?struts2日期標(biāo)簽小結(jié)(8546)
3.?Struts2自定義標(biāo)簽(7127)
4.?web中使用POI的例子(4588)
5.?POI簡單應(yīng)用(word,excel)(3464)
評論排行榜
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)
一個form多個submit的action配置
jsp頁面:
<
s:submit
value
="查詢"
method
="query"
/>
<
s:submit
value
="刪除"
method
="delete"
/>
<
s:submit
value
="修改"
method
="update"
/>
java的action
import
com.opensymphony.xwork2.ActionSupport;
public
class
TestAction
extends
ActionSupport
{
public
String query()
{
return
"
query
"
;
}
public
String delete()
{
return
"
delete
"
;
}
public
String update()
{
return
"
update
"
;
}
}
struts.xml配置
<
package
name
="test"
extends
="struts-default"
>
<
action
name
="test"
class
="TestAction"
>
<
result
name
="query"
>
/result.jsp
</
result
>
<
result
name
="delete"
>
/result.jsp
</
result
>
<
result
name
="update"
>
/result.jsp
</
result
>
</
action
>
</
package
>
頁面通過method
屬性指定了要調(diào)用的Action方法
posted on 2008-11-10 14:41
Jarry
閱讀(915)
評論(0)
編輯
收藏
所屬分類:
Struts2.x
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發(fā)表評論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關(guān)文章:
struts2 下載文件時struts.xml的配置
struts2日期標(biāo)簽小結(jié)
struts2的struts.properties詳解
一個form多個submit的action配置
Struts2自定義標(biāo)簽
struts.xml的配置簡介
struts2.0的標(biāo)簽庫(簡介)
實現(xiàn)一個簡單的Struts2.0
Powered by:
BlogJava
Copyright ©2025 Jarry
主站蜘蛛池模板:
汾阳市
|
武宣县
|
邯郸县
|
霞浦县
|
鄂州市
|
连城县
|
洱源县
|
修水县
|
北辰区
|
桦甸市
|
富民县
|
中宁县
|
子洲县
|
同江市
|
宁南县
|
遂溪县
|
仁化县
|
云梦县
|
兴城市
|
吉水县
|
陵川县
|
木里
|
和林格尔县
|
高密市
|
句容市
|
建宁县
|
克什克腾旗
|
临泉县
|
丁青县
|
九江市
|
景宁
|
漯河市
|
巨鹿县
|
龙南县
|
吴川市
|
大方县
|
沙湾县
|
和静县
|
香港
|
祁门县
|
石渠县
|