Compare something like <%= mybean.getSomething() %> to <jsp:getProperty
name="mybean" property="something" /> - one is well-formed, and more likely
to be understood by less-aware JSP programmers.

It also means your JSP isn't clogged with tons of scriptlets that interface
with beans; JSP doesn't use beans for actions so much as for data
repositories. You can, for example, use a bean to hold your data and then a
tag to act upon it. That's what most of *my* taglibs do, and that's the
model I've found to be most efficient to me.


>From: Ganesh MohanRao <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Advantages of Taglibs over JavaBeans
>Date: Wed, 7 Feb 2001 09:44:33 -0600
>
>Hi All,
>
>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

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
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