Struts/TilesのTIPS集
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
//ここにコンテンツを記述します。
*** Tilesの属性をimportする [#h49c15a6]
<tiles:importAttribute name="app.name" scope="request" />
とすると
<bean:write name="app.name"/>
(ようするにrequest.getAttribute("app.name");)
とできるようになります((importAttribute はinclude元でやる...
<tiles:useAttribute name="app.name" scope="request" />
もほとんど同じですが、useAttribute はスクリプティング変数...
*** 他のTilesのDefinitionを呼び出す。 [#p08a63c7]
<definition name="kino.tiles.javaDocumentSearch" extends...
<put name="app.name" value="JavaDocument Application" />
<put name="body" value="/javaDocumentSearch.jsp" />
<put name="menubar" value="kino.tiles.othermenubar" />
↑このような他のTiles定義を呼び出すこともできます。
</definition>
----
この記事は
#vote(おもしろかった[34],そうでもない[56])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
//ここにコンテンツを記述します。
*** Tilesの属性をimportする [#h49c15a6]
<tiles:importAttribute name="app.name" scope="request" />
とすると
<bean:write name="app.name"/>
(ようするにrequest.getAttribute("app.name");)
とできるようになります((importAttribute はinclude元でやる...
<tiles:useAttribute name="app.name" scope="request" />
もほとんど同じですが、useAttribute はスクリプティング変数...
*** 他のTilesのDefinitionを呼び出す。 [#p08a63c7]
<definition name="kino.tiles.javaDocumentSearch" extends...
<put name="app.name" value="JavaDocument Application" />
<put name="body" value="/javaDocumentSearch.jsp" />
<put name="menubar" value="kino.tiles.othermenubar" />
↑このような他のTiles定義を呼び出すこともできます。
</definition>
----
この記事は
#vote(おもしろかった[34],そうでもない[56])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: