Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JspFragment in Simple tag life cycle

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • 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
Pie
Posts: 2536
113
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