Set up a tag that repeatedly loops, setting simple strings each time round
'till the data is exhausted eg.
<myLib:results>
 <tr><td><%= title %></td><td><%= descr %></td></tr>
</myLib:results>

Or use nested tags:
<myLib:results>
 <tr><td><myLib:title/></td><td><myLib:descr/></td></tr>
</myLib:results>

> Hi All,
> 
> I have implemented a few simple tags that use attributes and parameters.  I
> would like to use JSP to keep presentation(formatting) separate from content
> and processing.  It seems to me that tag libs need to be able to return a
> list, vector, array, enum, or some other multi-part form of data, rather
> than printing directly to out.println.  As it is, it seems tags are forced
> to place HTML formatting statements in the taglib implementation when
> returning more than one item in a single call.  Then, presentation is mixed
> into the processing and content returned by the tag.  Shouldn't the tag be
> able to return data that can be formatted differently without changing the
> tag implementation?  Maybe as objects in the session?? 
> 
> Thanks,
> Vick Fisher
> TEOCO, Fairfax, VA
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to