The moose likes Servlets and the fly likes PrintWriter no html to response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "PrintWriter no html to response" Watch "PrintWriter no html to response" New topic

PrintWriter no html to response

Grace Russo
Ranch Hand

Joined: Nov 08, 2010
Posts: 64
I cannot understand why the following code does not write the HTML to response.
the debugger executes each line, no errors, but no html to the response either. ANy suggestions on how to troubleshoot this ? Thank you

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60774

Did you open the writer? (Answer: no).

If you didn't open it, you shouldn't close it.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: PrintWriter no html to response
Similar Threads
Servlet HelloWorld problem
Servlet not being called
Java Servlets and JSP pages
about sendRedirect
java.servlet.* cannot import, but javax.servlet.* ok???