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 write to output in the doAfterBody() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "write to output in the doAfterBody() method" Watch "write to output in the doAfterBody() method" New topic
Author

write to output in the doAfterBody() method

chris noe
Greenhorn

Joined: Aug 20, 2003
Posts: 14
Hello,

I'm studying for the SCWCD exam and i'm a bit confused about the following :
Can someone tell me the difference between :

JspWriter wrt = getBodyContent.getEnclosingWriter();
JspWriter wrt = getPreviousOut();
JspWriter wrt = getPageContext.getOut();

in the doAfterBodyMethod of a class extending the BodyTagSupport.
Doesn't all the 'wrt' write to the same output ?

Tnx,
Chris.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60807
    
  65

Since we have a forum specifically for the SCWCD exam, I'm moving this topic to that forum for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: write to output in the doAfterBody() method
 
Similar Threads
doAfterBody() is not executed using BodyTagSupport
write to output in the doAfterBody
A proble writing byte array to client in JSP
Outputting help
sending html to the browser whilst an intensive operation proceeds