Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doAfterBody() in custom Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doAfterBody() in custom Tags" Watch "doAfterBody() in custom Tags" New topic
Author

doAfterBody() in custom Tags

Sophie Angela
Ranch Hand

Joined: Jul 17, 2006
Posts: 46
can we do a pageContext.getOut().println("yes");
inside thw doAfterBody() method?
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
Why Can't..?



Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Sophie Angela
Ranch Hand

Joined: Jul 17, 2006
Posts: 46
hello john,,

what will be the output for the above program you have given?
I read somewhere that if we want to print from a doAfterBody() we have to used previousOut implicit variable!!!


please give me a explanation about this...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: doAfterBody() in custom Tags
 
Similar Threads
doStartTag() retun Type
about EVAL_BODY_BUFFERED
Buffering of bodycontent in tags
doAfterBody()
Not able to get the bodycontent