• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doAfterBody() in custom Tags

 
Sophie Angela
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we do a pageContext.getOut().println("yes");
inside thw doAfterBody() method?
 
Micheal John
Ranch Hand
Posts: 344
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why Can't..?

 
Sophie Angela
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic