• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TagLib Again..........

 
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai All!
What exactly getPreviousOut()method of BodyTagSupport will do?

TIA
Rgds
Manohar
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The implicit "out" variable in a JSP represents the JspWriter that allows us to write stuff back from the JSP.
When a body tag is encountered, what happens is that a BodyContent object is created. BodyContent is a subclass of JspWriter and is (if you like) a "scratch pad" or temporary area to which content can be written and if required, manipulated.
It's like a stack meaning that the JspWriter belonging to the JSP page is the "previous out". Of course nested body tags also means creating more BodyContent objects too...
Cheers
Simon
[This message has been edited by Simon Brown (edited August 29, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic