名字
|
是否必須
|
默認值
|
能否使用表達式
|
類型
|
描述
|
id
|
否
|
|
是
|
String
|
用來表示該元素,對於UI和Form標籤來講直接轉變爲HTML id屬性
|
test
|
是
|
|
是
|
Boolean
|
用來決定是否顯示標籤內部內容的表達式
|
名字
|
是否必須
|
默認值
|
能否使用表達式
|
類型
|
描述
|
id
|
否
|
|
是
|
String
|
用來保存結果iterator的對象在value context中的名字。
|
名字
|
是否必須
|
默認值
|
能否使用表達式
|
類型
|
描述
|
id
|
否
|
|
是
|
String
|
Id
,
|
status
|
否
|
否
|
是
|
Boolean
|
若是指定,在循環的過程當中會保留一個IteratorStatus類型的變量,該變量用來查詢當前迭代的狀態
|
value
|
否
|
|
是
|
String
|
被迭代的對象
|
名字
|
是否必須
|
默認值
|
能否使用表達式
|
類型
|
描述
|
Comparator
|
是
|
|
是
|
java.util.Comparator
|
排序用的比較器
|
Source
|
否
|
|
是
|
String
|
排序對象
|
名字
|
是否必須
|
默認值
|
能否使用表達式
|
類型
|
描述
|
count
|
False
|
|
是
|
Integer
|
Iterator
中被遞歸的一部分的item的數量
|
Decider
|
否
|
|
是
|
org.apache.struts2.util.
SubsetIteratorFilter.Decider
|
用來判斷iterator中的item是否包含在最終的subset內部
|
Source
|
否
|
|
是
|
String
|
Iterator
的對象
|
Start
|
否
|
|
是
|
Integer
|
開始位置
|
屬性
|
主題
|
數據類型
|
說明
|
templateDir
|
n/a
|
String
|
定義模版目錄
|
theme
|
n/a
|
String
|
定義主題的名字
|
template
|
n/a
|
String
|
定義模版名字
|
屬性
|
主題
|
數據類型
|
說明
|
onclick
|
simple
|
String
|
html javascript onclick
屬性
|
ondbclick
|
simple
|
String
|
html javascript ondbclick
屬性
|
onmousedown
|
simple
|
String
|
html javascript onmousedown
屬性
|
onmouseup
|
simple
|
String
|
html javascript onmouseup
屬性
|
onmouseover
|
simple
|
String
|
html javascript onmouseover
屬性
|
onmouseout
|
simple
|
String
|
html javascript onmouseout
屬性
|
onfocus
|
simple
|
String
|
html javascript onfocus
屬性
|
onblur
|
simple
|
String
|
html javascript onblur
屬性
|
onkeypress
|
simple
|
String
|
html javascript onkeypress
屬性
|
onkeyup
|
simple
|
String
|
html javascript onkeyup
屬性
|
onkeydown
|
simple
|
String
|
html javascript onkeydown
屬性
|
onselect
|
simple
|
String
|
html javascript onselect
屬性
|
onchange
|
simple
|
String
|
html javascript onchange
屬性
|
屬性
|
數據類型
|
默認值
|
說明
|
tooltip
|
String
|
none
|
爲指定的組件設置Tooltip
|
jsTooltipEnabled
|
String
|
false
|
使用js表示tooltip
|
tooltipIcon
|
String
|
/struts/static/tooltip/tooltip.gif
|
指向tooltip圖表的URL
|
tooltipDelay
|
String
|
500
|
多長時間後顯示Tooltip
|
key
|
simple
|
String
|
這個輸入字段對應的屬性,用來自動設置name,label和value
|
屬性
|
主題
|
數據類型
|
說明
|
cssClass
|
simple
|
String
|
定義html class 屬性
|
cssStyle
|
simple
|
String
|
定義html style屬性
|
title
|
simple
|
String
|
定義html title屬性
|
disabled
|
simple
|
String
|
定義html disabled屬性
|
label
|
xhtml
|
String
|
定義form字段的標籤
|
labelPosition
|
xhtml
|
String
|
定義標籤在Form中的位置,從左從上計算
|
requiredPosition
|
xhtml
|
String
|
定義必須的標籤在Form中的位置,從左從上計算
|
name
|
simple
|
String
|
定義form字段的name映射
|
required
|
xhtml
|
Boolean
|
在label上添加一個*
|
tabIndex
|
simple
|
String
|
定義 html tabIndex屬性
|
value
|
simple
|
Object
|
定義form字段的值
|
應用程序
|
/template/ajax/textfield.ftl
|
classpath
|
/template/ajax/textfield.ftl
|
屬性
|
說明
|
類型
|
href
|
請求使用的URL
|
String
|
listenTopic
|
使用逗號分割的一組主題列表,這個列表中的主題會致使這個Tag本身內容(Div,Autocompleter)從新裝載或者執行一個Action(Anchor,Submit)
|
String
|
notifyTopic
|
使用逗號分割的一組主題列表,向這個列表中的主題發佈一些信息,例如:’data’,’type’,’request’,參看每一個標籤的詳細說明
|
String
|
showErrorTransportText
|
設置是否顯示錯誤消息(默認顯示)
|
Boolean
|
indicator
|
請求過程當中顯示的對象,一般位ProgressBar等
|
String
|
表達式
|
含義
|
<p>Username: ${user.username}</p>
|
一個在標準上下文中的JavaBean對象,能夠適用Freemarker,Velocity,JSTL EL等(不是OGNL)。
|
<s:textfield name="username"/>
|
在Value Stack中的一個username屬性。
|
<s:url id="es" action="Hello">
<s:param name="request_locale">
es
</s:param>
</s:url>
<s:a href="%{es}">Espanol</s:a>
|
引用Value Stack中屬性的另一種方法。
|
<s:property
name="#session.user.username" />
|
Session
中的user對象的username屬性。
|
<s:select
label="FooBar" name="foo"
list="#{'username':'trillian',
'username':'zaphod'}" />
|
一個簡單的靜態Map,和put("username","trillian")同樣
|