-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
  • 344,413
  • 96
  • 627
  • 693
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,206
  • 17
  • 64
  • 89