Why does it fragment the HTML output - the inner tag is in sole control of
the layout, the outter tag just supplies the data - I would call this good
seperation but YMMV.

I agree that this wouldn't always be useful, and that in certain cases the
example may be too simplistic, but think of the power that a few simple HTML
tags give us.

In fact there's no reason why we couldn't emulate many of the HTML tags in a
tag library but make them data bound tags. So we could have a <xx:table>
<xx:tr> and <xx:td> tags that 'know' where to get their data from! Now that
would be cool!

Kevin Jones
DevelopMentor
www.develop.com

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vin Lisciandro
> Sent: 25 May 2000 21:24
> To: [EMAIL PROTECTED]
> Subject: Re: Lists in a JSP
>
>
> At 07:34 PM 5/25/00 +0100, Kevin Jones wrote:
> >with tags a better way would be to have two tags, one that
> manages the data
> >and one that controls the ouput, so you have this
> >
> ><xx:dataTag>
> >         <xx:outputTag />
> ></xx:dataTag>
>
>
> The problem with this is that by using the custom <xx:outputTag /> you end
> up fragmenting your HTML output.
>
> It therefore requires that someone (possibly not a JSP developer) would
> need to know where the outputTag code resides in order to make HTML code
> changes.
>
> The first tag <xx:dataTag> makes sense as it removes Java logic - but the
> second one probably opens problems with page maintenance.
> I'd suggest leaving all the HTML in the JSP when at all humanly possible.
>
>
> - vin
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to