Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JSP and the fly likes jstl - specify how many tokens Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl - specify how many tokens" Watch "jstl - specify how many tokens" New topic

jstl - specify how many tokens

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Hi there,
is there any way on the

where I can specify how many tokens should be written?

trying to decode a woman mind....
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

From the JSTL Spec:

6.1.4 Range Attributes

A set of range attributes is available to iterate over a subset of the collection of items.
The begin and end indices can be specified, along with a step. If the items
attribute is not specified, then the value of the current item is set to the integer value
of the current index.

In this example, i would take values from 100 to 110

Hope it helps.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: jstl - specify how many tokens