#author("2020-10-05T02:52:47+00:00","","")
#author("2021-04-30T00:33:11+00:00","","")
#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="layoutBase">
   <put name="app.name" value="JavaDocument Application" />
   <put name="body" value="/javaDocumentSearch.jsp" />
   <put name="menubar" value="kino.tiles.othermenubar" />
   ↑このような他のTiles定義を呼び出すこともできます。
 </definition>



----
この記事は
#vote(おもしろかった[33],そうでもない[56])
#vote(おもしろかった[34],そうでもない[56])

#comment

#topicpath


SIZE(10){現在のアクセス:&counter;}

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS