-1

I want to use 2 conditions in a <c:if> but i don't know if it is possible.

For example:

<c:if test="${(a.cost == b.cost) and (a.price == b.price)}" />
   Some code...
</c:if>
Matt Ball
  • 354,903
  • 100
  • 647
  • 710
Martin
  • 215
  • 5
  • 14

1 Answers1

0

Use && instead of and

<c:if test="${(a.cost == b.cost) && (a.price == b.price)}" />
   Some code...
</c:if>
Ramesh Kotha
  • 8,266
  • 17
  • 66
  • 90