• 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

RequestDispatcher.include( ) - help!

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working with the RequestDispatcher's include() method. In my first servlet, I'm using the PrintWriter before & after the call to include(), and every documentation I've seen says that this should work, but for some reason, it doesn't!
The servlet that I'm including creates an html tag, gets a PrintWriter, and sends the tag to out.println().
I'm getting the tag back in my first servlet, but none of the PrintWriter statements in the first servlet work after that point. Any hints??
Thank you,
Gail
[ August 23, 2002: Message edited by: Elaine Micheals ]
 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
never mind... Here's what happened - the second servlet was opening, and CLOSING a PrintWriter. I omitted the line in the second servlet which closed the PrintWriter, and everything's happy now!
*Gail
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic