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
posted 10 years ago
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.