Struts2
テキストフィールドのスタイルを動的に変更して、特定の条件に応じて背景色を変更しようとしています。
- 質問 1 - これは可能ですか
- 質問 2 - ここの他の投稿から - 次のことを試しましたが、スタイルが評価されませんか?
これを行う方法や、以下で間違っていることについての指針はありますか?
<s:if test='%{contactStatusCode == "ARE" }'>
<s:set var="AREStyle" value="%{'background:#eeeeee'}"/>
<s:textfield name = "followUpComment"
id = "followUpComment[%{#index.index}]"
style = "%{#AREStyle}"
size = "15"
maxlength = "100" />