"Singh, Hari Nam" wrote:
> I know that this is a very busy list, but maybe someone can give me a good
> pointer here:
>
> How do you make loops elegantly. With elegantly, I mean without resorting to
> scriptlets. As this would be too hard to grasp for a designer. Is there a
> special tag for loops, or a way to make my own tag for loops (I looked at
> making tag libraries in the spec, but it didn't seem to be able to handle
> loops).
>
> A sample application would be for example for a list of products. I would
> have one bean, which contains all the products. Then, I would like to cycle
> through each product to get name, pic src, price etc.
>
Iteration can indeed be handled with custom tags. In the JSP 1.1 spec, see Section
A.2.3 for a discussion of how a looping tag might be implemented.
Efforts are underway on several fronts to develop a standard set of tag libraries
-- they just aren't available yet (to my current knowledge).
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html