Child pages
  • Why won't the 'if' tag evaluate a one char string
Skip to end of metadata
Go to start of metadata

If care is not taken with the quoting of literals, the expression language (OGNL) will misinterpret a char as a String.

Wrong

The solution is simple: flip the double and single quotes.

Right

Another solution is to escape the double quotes in the String.

Also Right
  • No labels