Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff betwn Java BEan and Taglib

 
Mahesh Pinnamaneni
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys,
can anyone of u just tell me the difference between java Bean and i know that both of them are reusable components.apart from that what other specific funtionality does they differ.
thanks®ards,
Mahesh
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mahesh,

You can find that in many JSP/J2EE books. Here are few, (as I remember) from Hanumant Deshmukh's book:

1. Beans are data handler used for storage, tags are used for computational/presentation logics.
2. Tags are thread safe, beans are not.(developer has to make it thread safe)
3.Tags can access JSP environment context, beans can not. (Pagecontext etc)
4. Tags can access implicit objects, beans can not.

You can find many more in other books.
happy reading.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic