Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

tag libs over java beans

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to Tag libs and trying to dip my fingures into it. I find that they do similar job as a Java bean do? Am I wrong ? Can any body tell me what's the advantage of Tag Libs over Java Beans.
Regards,
Mustang.
 
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
Hi there,
This is one of those topics that comes up quite frequently so you could try doing a search for more information, but basically it's best to use JavaBeans for data and tags for actions.
I did a session at JavaOne last year called "Custom tags vs. JavaBeans", the slides for which can be downloaded in PDF format from my website at http://www.simongbrown.com. Click "Conferences" on the left-hand side.
This should give you a good overview, but for a much, much more detailed overview of some of the other reasons behind this (tag pooling, tags being short-lived container-managed components, etc), it's all covered in chapter 8 of my new book - Professional JSP Tag Libraries.
Hope that helps
Simon
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

it's all covered in chapter 8 of my new book - Professional JSP Tag Libraries


This is the BEST book written about the subject matter!
Just go ahead and buy it and if you don't love it I will send you a money order to reimburse you.
 
Simon Brown
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
I've just been sorting out getting hold of the sample chapters for my book and as a weird coincidence, the chapter on Tag Patterns is one of them, available to download in PDF.
Simon
( thanks Ersin )
[ June 06, 2002: Message edited by: Simon Brown ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic