File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes where to output? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "where to output?" Watch "where to output?" New topic
Author

where to output?

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
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


SCJP<br />SCWCD<br />SCEA
See El
Ranch Hand

Joined: Oct 07, 2002
Posts: 44
System.out.println will print to the server's (tomcat ...) console.


See El<br />SCJP2, SCWCD, IBM XML, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where to output?
 
Similar Threads
doAfterBody() is not executed using BodyTagSupport
Mock Exam Question - related to doAfterBody
BodyTagSupport return values
doInitBody()
Extending BodyTagSupport (HFS CH10 Q9)