• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher.include( ) - help!

 
Gail Schlentz
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic