THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Can I add I18N outside the Action's context? i.e. adding i18n to some JSP using the ww taglib?
Yes, use the <ww:i18n> tag to push a resource bundle on to the stack. Now calls with <ww:text/> or <ww:property value="getText(...)"/> will read from that resource bundle.
Why won't the 'if' tag evaluate a one char string?
Code Block |
---|
<ww:if test="#myObj.myString == 'A'">
Why doesn't this work when myString is equal to A?
</ww:if>
|
OGNL will interpret 'A' as a char type and not a string. Simple solution - flip the double and single quotes.
Code Block |
---|
<ww:if test='#myObj.myString == "A"'>
This works!
</ww:if>
|
Alternatively, you can escape the double quotes in the String:
Code Block |
---|
<ww:if test="#myObj.myString == \"A\"">
This works!
</ww:if>
|