• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eduardo Cobian's SCWCD Test Q25

 
Peter Masreblta
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The following Tag handler:
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;
}
}
with the JSP:
<prefix:sufix>
<i>Hello</i>
</prefix:sufix>
will print out: "in tag how are you?" with Tomcat 4.0.
Is this the supposed behavior?
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic