File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes simple JSTL problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "simple JSTL problem" Watch "simple JSTL problem" New topic

simple JSTL problem

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
In the below simple JSTL, I do not know why "this is true " and "this is false " can NOT be output ?
<%@ taglib prefix="c" uri="" %>
<c:forEach var="i" begin="1" end = "10">
<c ut value="${i}"/>
<c:when test=" ${i%2 == 0}">
<c ut value=" this is true"/><br>
<c:when test=" ${i%2 != 0} ">
<c ut value="this is false"/><br>
<c therwise>
this is otherwise <br>
</c therwise>
I agree. Here's the link:
subject: simple JSTL problem
It's not a secret anymore!