struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alexj" <al...@freesurf.ch>
Subject Re: paginator tags
Date Thu, 06 Mar 2003 20:31:05 GMT
you may use <display tag> or struts-el
here is a sample from JSTL in Action :
<%@ 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:out value="${boundaryStart}"/>">

[

<c:out value="${boundaryStart}"/>

-

<c:out 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:out value="${current}"/></li>

<c:if test="${status.last}">

</ul>

</c:if>

</c:forEach>

--
Alexandre Jaquet
----- Original Message -----
From: "Jacky Kimmel" <rjkimme@yahoo.com>
To: <struts-user@jakarta.apache.org>
Sent: Thursday, March 06, 2003 9:22 PM
Subject: paginator tags


>
> Does anyone know how to implement paginator tags?  Ie: you have a list of
30 items out of 100.  You now want to display the next 30 and so on.
>
>
>
> Also, I am using application.resource for all labels.  I want to have a
name with a trademark symbol as a superscript.  Anyone know how to do this?
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message