• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why taglib when usebean is there?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
why we need tablib?
How taglib and usebean are different? or What taglib do that usebean cant do?
Vikram.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In general:
1. beans tend to be used for simple functions while taglibs can be quite complex.
2. taglibs are convenient for packaging and distributing a number of related functions as a jar.
3. the taglib base classes have a number of useful functions already well debugged, making it easier to create your own taglibs, as opposed to beans where you start with a blank slate.
Bill
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And just to add one more point, tags are much more aware of the environment in which they run, meaning that they have access to things like the session, request, etc.
For a detailed comparison of tags vs. JavaBeans, check out Chapter 8 : Tag Patterns (from Professional JSP Tag Libraries) that is available to download for free in PDF format.
Regards
Simon
 
Vikram Kamate
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot
William and simon,
you people are doing great job.
thanks again
Vikram.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic