Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

tag libs over java beans  RSS feed

 
mustang india
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • 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
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!