!!!Struts2 ifタグ {{include_html banner_html, "!Struts"}} 条件分岐、if単体および、elseIf、else と併せて利用 !!if ::パラメータ ,タグ名,必須,デフォルト,評価,型,内容 ,id ,false ,,true ,String ,要素参照用ID. UIや、FORMタグ用。HTMLのid属性として利用される。 ,test ,true ,,true ,Boolean ,タグの内容を表示するか決定する式。 !!elseIf ::パラメータ ,タグ名,必須,デフォルト,評価,型,内容 ,id ,false ,,true ,String ,要素参照用ID. UIや、FORMタグ用。HTMLのid属性として利用される。 ,test ,true ,,true ,Boolean ,タグの内容を表示するか決定する式。 !!else ::パラメータ ,タグ名,必須,デフォルト,評価,型,内容 ,id ,false ,,true ,String ,要素参照用ID. UIや、FORMタグ用。HTMLのid属性として利用される。 !!使用例
Will Not Be Executed
Will Be Executed
Will Not Be Executed
---- {{include_html banner_html, "!Struts"}}