Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

diff between BodyTagSupport and TagSupport  RSS feed

 
Art Van Delay
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've been studying for the web component dev cert using the HFSJ book.

I'm just wondering what is the difference between BodyTagSupport and TagSupport when TagSupport can still evaluate the body by returning EVAL_BODY_INCLUDE?

Thanks in advance.
[ September 05, 2005: Message edited by: rusty angus ]
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BodyTagSupport allows manipulating the content of evaluating tag body. If you use TagSupport, evaluated body is placed to the page, and the user can do nothing with this. When using BodyTagSupport, the user can pick evaluated body from the buffer (BodyContent object) and transform it according his needs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!