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

JspFragment in Simple tag life cycle  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1572
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mock question 11 in Ch 10 of Head First,

Which is true about the lifecycle of a simple tag?

D. The JspFragment of the tag body is invoked by the container....



I guess what it means is the setJspBody (JspFragment) of the tag body is invoked by the container...
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 3013
236
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guess what it means is the setJspBody (JspFragment) of the tag body is invoked by the container

Yes, the JspFragment is not invoked by the container, but passed to the tag handler by the setJspBody method (and that method is invoked by the container).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!