If I have a bean with a variable of type of String
ie public String getType() { return type; }
AND it has a number, eg 2.
In my jsp
Does not work:
<s:if test="bean.type.equals('2')">
I must use this:
<s:if test="bean.type == 2">
Is this how it should work?
....Some old code uses .equals('2'), as the bean is a string, and is not
working as expected.🙁 Maybe it has always been wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org