Tuesday, April 1, 2008

Struts 2 Tips and Tricks

OGNL treats a character in single-quotes as an actual character, not a String. So this statement will not return your desired result.

<s:if test="%{state=='N'}"> This will work. <s:if test="%{state=='NE'}"> </s:if>

0 Comments: