이 문제에 대한 해결책이 Struts2에 있습니까?struts2 switch 문
<s:if test="%{var < 50}">
<p style="color: red;">The quick brown fox jumped over the lazy brown dog.</p>
</s:if>
<s:elseif test="%{var == 50}">
<p style="color: blue;">The quick brown fox jumped over the lazy brown dog.</p>
</s:elseif>
<s:elseif test="%{var > 50}">
<p style="color: pink;">The quick brown fox jumped over the lazy brown dog.</p>
</s:elseif>
이상적으로 나는 여기에 switch 문을 사용하고 싶지만 존재하지 않는 것으로 보입니다. 사소한 변경으로 같은 줄을 입력하는 대신 다른 적합한 해결책이 있습니까?
Ruby on Rails 및 HAML : Heaven – Chloe