How to use else if in JSTL
843840Oct 9 2008 — edited Oct 20 2008Can any one tell me ,
How to use else if in JSTL,
For example,
if(a > b){
// code block
}else if(b > c){
// code block
}else{
// code block
}
Shall i use like following,
<c:choose>
<c:when test=' "${ a > b }" '>
</c:when>
<c:when test=' "${ b > c }" '>
</c:when>
<c :otherwise>
</c:otherwise>
</c:choose>
this JSTL code is correct or not?..
Thanks in advance
Deenu