Plus, it's much harder for the UI people to break your code.

J

Tony Einarsson wrote:

> And from a different perspective, think about the HTML designer, the person that is 
>primarily responsible for layout.  Consider what they know about HTML tags.  Now 
>imagine being able to add to that any kind of tags you want.  That's the capability 
>you get from custom tags.  Suddenly your layout people are more productive since they 
>can use these new tags to build common functionalities more quickly, or their 
>capabilities are simply expanded since now they can easily write loops and conditions 
>(<mytags:if> etc), access datasets, or turn out internationalized pages, etc. etc.
>
> The possibilities are endless.
>
> T.
>
> > -----Original Message-----
> > From: Julia Reynolds [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 07, 2001 4:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Taglibs and JavaBeans ???
> >
> >
> > It's not either Taglibs or JavaBeans.  Java Beans are great
> > for accessing
> > the db or the ejb tier.  Taglibs are good for encapsulating
> > logic that affects
> > presentation or for forcing a standard format for html elements.
> >
> > For example,we use a bean to return a collection of records
> > to be displayed, but we
> > use
> > custom tags to iterate through the bean's collection.  We use
> > a custom tag to
> > present a drop down box pre-filled with alternate usernames
> > for new users who want
> > to register with a username that is already in use.
> >
> > We also use a custom tag for the username text box.  It
> > forces all username text
> > boxes to have a maxlength of 20.  This way developers don't
> > forget the max size of
> > the username in the
> > database and accidentally allow 100 character usernames to be
> > input on the
> > registration page.  They just always use the username tag.
> >
> > JJR
> >
> > Ganesh MohanRao wrote:
> >
> > > Hi All,
> > >
> > > Since i didn't get any response, I am reposting it.
> > >
> > > Can anyone tell me the Advantatges of Taglib in JSP?
> > >
> > > Separating Business logic from Presentation is already done
> > using Java
> > > Beans.
> > >
> > > In what way it is advantageous than Java Bean.
> > >
> > > Can you tell something which can be done using
> > Taglib(Custom Tags) and not
> > > possible using JavaBean?
> > >
> > > If possible give me some lights on Taglibs.
> > >
> > > Thanx in Advance.
> > >
> > > Ganesh
> > >
> > >
> > ==============================================================
> > =============
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > > 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".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > 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".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> 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

--
In a time of drastic change it is the learners who inherit the future. The learned 
find themselves equipped to live in a world that no longer exists. - Eric Hoffer

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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