• Post Reply Bookmark Topic Watch Topic
  • New Topic

where to output?

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class MyPage extends BodyTagSupport {
public void doInitBody() throws JspException {
System.out.println("initBody()");
}
public int doAfterBody() throws JspException {
return SKIP_BODY;
}
public int doEndTag() throws JspException {
return EVAL_PAGE;
}
}
1. where does the System.out.println("initBody()"); in doInitBody() print to? BodyContent buffer ?
2. does all the output in doInitBody() and doAfterdoBody() print to BodyContent buffer if BodyTagSupport is extends?
thanks for you to clarify my questions
 
See El
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out.println will print to the server's (tomcat ...) console.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!