■ここに置く
アプリケーションルートフォルダ
/WEB-INF/struts-nested.tld
■web.xmlに書く
</web-app>
・・・中略・・・
<taglib>
<taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
・・・中略・・・
</web-app>
■jspに書く
<%@ taglib
uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
■ネストのルートとなるBeanを指定
<nested:root name="ルートとなるBean名"/>
■ネストレベルを設定
<nested:nest property="ネストレベルに設定するプロパティ名"/>
■ネストレベルを出力or変数として定義
<nested:writeNesting
property="ネストレベルを出力するプロパティ名、
設定しなければこのタグ自体のネスとレベルを出力"
id="ネストレベルを変数として定義する時の変数名、
これが設定された場合ネストレベルはString型の変数として定義される"
filter="true→HTMLセンシティブな文字列をエスケープ変換する
false→エスケープ変換しない"
/>
■nestedでも使える
□struts-beanタグ
define
message
size
write
□struts-htmlタグ
checkbox
errors
file
form
hidden
image
img
link
messages
multibox
options
optionsCollection
password
radio
select
submit
text
textarea
□struts-logicタグ
empty
equal
greaterEqual
greaterThan
iterate
lessEqual
lessThan
match
messegesNotPresent
messagesPresent
notEmpty
notEqual
notMatch
notPresent
present
最終更新:2008年05月27日 22:18