Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tags v/s Java Beans

 
L Goundalkar
Ranch Hand
Posts: 395
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any thumb rule when to use Custom Tag and when to use Java Beans.
I feel we can get the solution using either of them.
Am I right?
[ July 07, 2003: Message edited by: L Goundalkar ]
 
Christian Ebage
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel Custom Tags use JavaBeans to display dynamic content, since JavaBeans contain data, and have methods to get and mutate the data and no presentation logic.
Custom Tags have a kind of managing role as far as the Javabean/Tag ralationship is concerned. I would say it is the way most Java Developers would prefare to write JSPs which use JavaBeans.
Ebage
SCJP
SCEA
[ July 07, 2003: Message edited by: Christian Ebage ]
 
Dhananjay Ghanwat
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Custom Tags when you want to help your VIEW with some processing.
Use Java Beans when you want to help your BUSINESS with some processing
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic