Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use else if in JSTL

843840Oct 9 2008 — edited Oct 20 2008
Can 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2008
Added on Oct 9 2008
5 comments
217 views