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

javabeans don't reside in translation unit?  RSS feed

 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't understand very well the sentence from SCWCD studit kit saying that:

Tags remain in the translation unit. We can think of tag as events occuring in the execution of a JSP page. Beans are object stores that reside outside the translation unit.

What does this mean exactly? Either I use javabean or customtag, I can see both in my tranlation unit.
Apart from the code used that differs, what's the essential difference between them?
Thanks for your response,
Regards,
Cyril.
 
Steve Leach
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what they are trying to get at is that the tag handler objects are created and used by the JSP container, while your JavaBean objects are created and used by your application.
If you think about it, you never write code that creates an instance of your tag handler class, or even refers to an instance of it.
Does this help ?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!