LoginSignup
8
5

More than 5 years have passed since last update.

Struts Tiles で値があった時だけ出力

Posted at

ignore="true" を指定すると、値がなくてもエラーになりません。

こんな感じで、特定のページにだけ script タグを追加したい時などに。

  ...
  <script src="foo.js"></script>
  <script src="bar.js"></script>
  <tiles:insert attribute="extraScript" ignore="true" />
</body>
8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5