Hi,

>>I want to a write tag file that is sort of like a specific  version of

>>the foreach tag - I want to pass in a collection of objects (not 
>>strings).

>Why don't you just use the JSTL forEach tag as is? It can handle just
about any 
>Collection, List, Map etc. that exists in Java and has a bundle of
built in features to
> ease iteration. You just use dot notation to get the desired property
from the objects >in the collection.

I have several pages in my app that display a list of items and I want
to format them all in the same way - but each page displays different
things.

So I could have the foreach loop on each page, but then I would be
repeating the wrapper formatting on each page too.

By using the tag file, I put the standard formatting in there.  

My workaround has been to use c:set to set a "global" variable before
calling the tagfile and then using it internally.

Thanks for the spec info.

Regards,
Chris
_____________________________________________________________

This email (including any attachments to it) is confidential, legally privileged, 
subject to copyright and is sent for the personal attention of the intended recipient 
only. If you have received this email in error, please advise us immediately and 
delete it. You are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly prohibited. 
Although we have taken reasonable precautions to ensure no viruses are present in this 
email, we cannot accept responsibility for any loss or damage arising from the viruses 
in this email or attachments. We exclude any liability for the content of this email, 
or for the consequences of any actions taken on the basis of the information provided 
in this email or its attachments, unless that information is subsequently confirmed in 
writing. If this email contains an offer, that should be considered as an invitation 
to treat.
_____________________________________________________________

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to