Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taglib question.

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:set var="totalCount" scope="session" value="100"/>
<c:set var="perPage" scope="session" value="20"/>
<c:forEach
var="boundaryStart"
begin="0"
end="${totalCount - 1}"
step="${perPage}">
<a href="?start=<c ut value="${boundaryStart}"/>">
[
<c ut value="${boundaryStart}"/>
-
<c ut value="${boundaryStart + perPage - 1}"/>
]
</a>
</c:forEach>
<c:forEach
var="current"
varStatus="status"
begin="${param.start}"
end="${param.start + perPage - 1}">
<c:if test="${status.first}">
<ul>
</c:if>
<li><c ut value="${current}"/></li>
<c:if test="${status.last}">
</ul>
</c:if>
</c:forEach>

gives me eror. I use websphere 5.0 studio and I see struts related stuff and not JSTL. What to do?

is it looking for jstl.jar?
[ October 20, 2004: Message edited by: shan javan ]
 
Amit Ghai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess problem is with your uri. Have you resolved your uri in web.xml or any of the jar files deployed.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see jstl.jar in my webinf/lib. Where can I find it? I mean which directory?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you downloaded JSTL?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide me the link to download JSTL.jar and also let me know where I have to save?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shan, this is JavaRanch.com not JavaLackey.com. Please show some initiative in doing your own part before asking others to do work for you. A google search on "jstl taglib download" reveals the Jakarta information for the JSTL as its first result.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Luke , check out this site. It is helpful. Mine works now.
http://www.developer.com/java/ejb/article.php/1447551
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic