• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JspFragment ques.

 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
there is a question in HF book chapter 10,mock ques 12

and an option D says:-
The JspFragment of the tag body is invoked by the container before the tag handler's doTag method is caled,This value , a BodyContent object is passed to the tag handler using the setJspBody mehtod.

Now i cant understand what is wrong with this option,..isint it correct?

they are saying it is invalid cuase the fragment is invoked by the doTag implemtnation,NOT before the doTag is called.

But according me it is called before doTag..
where am i wrong??
thanks,mallika
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JspFragment of the tag body is invoked by the container before the tag handler's doTag method is caled


The container never invokes the JspFragment. You have to invoke it by using JspFragment.invoke(null) method explicitly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic