I want to check if the value of the variable equals any of the possible 4 values like val1,val2,val3 , val4 i.e. if the value is other than val4 then format the page in A format else format it in B format.
If you are writing JSPs you need to have a copy of the JSP spec open on your desk. The section on the EL will let you know what operators exist that you can use.
trupti nigam
Ranch Hand
Joined: Jun 21, 2001
Posts: 602
posted
0
Originally posted by Bear Bibeault: If you are writing JSPs you need to have a copy of the JSP spec open on your desk. The section on the EL will let you know what operators exist that you can use.
That is the first thing I would do. I tried searching the google and other resources but could not find how to use "or" in the JSTL <c:if> tag.
Thought about posting it on Javaranch.
Thanks, Trupti
Michael Ku
Ranch Hand
Joined: Apr 20, 2002
Posts: 510
posted
0
you coiuld use the <c:choose> tag. It has c <ctherwise> sub tag