Hi Cindy, There is probably a better mailing list for this question; but anyway, why not simply use a tag within the iteration tag on the JSP page to check for the objects you don't want to display?
<myTag:myIterate tag ... > <myTag:myIfClause> JSP CODE </myTag:myIfClause> </myTag:myIterate tag> Also in the doAfterBody() you can also use a for/while statement to skip elements until you find ones that can be displayed Kam On 10/11/02 8:01, "Cindy Ballreich" <[EMAIL PROTECTED]> wrote: > Not directly a Tomcat question, but I hope not too far off topic. > > Let's say I have a collection of objects that I want to iterate through and > display on a JSP page with a custom tag. The body content of the tag on the > page formats the output as rows and elements of a table. Now, let's say I want > to skip a few of the objects in the middle of the collection. How can I skip > those objects without having the tag output the empty html tags from the page? > I've tried all of the doAfterBody() return values I can think of with no > success. (They either process the empty body content or stop processing > altogether.) I assume that I'm going to have to play around with the > BodyContent or PageContext, but I can't find any examples that show how to do > this and it's not intuitive to me. > > Any suggestions or examples would be greatly appreciated. > > Cindy > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
