Given the following tag handler defined with <bodycontent>
JSP</bodycontent>
public class body extends TagSupport {
public int doStartTag() throws JspException{
return EVAL_BODY_INCLUDE;
}
public int doAfterBody() throws JspException {
try { pageContext.getOut().print("how are you?"); }catch(IOException e) {}
return SKIP_BODY;
}
}
what will be printed out by the following part of a jsp page?
<prefix:sufix>
<i>Hello</i>
</prefix:sufix>
The answer is 4) The jsp page will print Hello and reasn given is you cannot print inside a doAfterBody() is this true ?
Thanks,
Yogesh