Originally posted by Jacob Fenwick:
Ok, so it doesn't actually contain an expression. I thought the part where the test attribute was evaluated was an expression, but I guess an expression is actually anything where ${x} is replaced by x.
All EL expressions are enclosed in the ${} delimiters. In your example
<c:when test="true || true">
there is no EL expression. The value passed to the test attribute is the
string "true || true".
If you want it to be an EL expression, you need to use the correct syntax:
then I did the test with the two trues
As I pointed out, you did not. Your test is flawed as described.
now I want to know why you can't OR two statements
You can.