Question about <c:when> and OR condition

I’m trying to accomplish something which should be simple but I can’t find the correct syntax to do it.

Basically I have a collection of <c:when> tests, which originally only had to test against one condition per outcome, but now need to be tested against more than one condition (need to be OR tested).

i.e. what’s the correct syntax to achieve the testing for the OR condition shown below:

<c:choose>
<c:when test=“${myForm.newValue == ‘ValueOne’ ||
myForm.newValue == ‘ValueTwo’ ||
myForm.newValue == ‘ValueThree’ }”>
<tr>
forward();
</tr>
</c:when>
<c:when test=“${myForm.newValue == ‘ValueOne’ ||
myForm.newValue == ‘ValueThree’ }”>
<tr>
back();
</tr>
</c:when>
<c : otherwise></c : otherwise>
</c:choose>

the syntax above doesn’t work and the only way I can get it working it to split the or conditions, which is not very elegant and creates redundancy, i.e.:

<c:when test=“${myForm.newValue == ‘ValueOne’ }”>
<tr>
forward();
</tr>
</c:when>
<c:when test=“${myForm.newValue == ‘ValueTwo’ }”>
<tr>
forward();
</tr>
</c:when>
<c:when test=“${myForm.newValue == ‘ValueThree’ }”>
<tr>
forward();
</tr>
</c:when>

thanks

in case anyone else ever wonders what the answer to my question is:

I experimented further and the syntax below did the trick:

<c:when test=“${(myForm.newValue == ‘ValueOne’) or
(myForm.newValue == ‘ValueTwo’) or
(myForm.newValue == ‘ValueThree’) }”>

… and hello everyone, sorry, didn’t have time to introduce myself, got a tight deadline at the moment.

(I’m a software developer by the way)