I have a simple servlet that creates HTML with PrintWriter and writes to console via System.out.prinln() in the same doGet() method.
I see HTML part in Eclipse (Java EE perspective) but there is nothing in the Console View. Where should stdout from a servlet appear in Eclipse?
Code looks like this:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("<h2>Hello from Applet<h2>");
System.out.println("doGet");
}
If it makes any difference here are the versions, Eclipse Juno, Java EE 7, GlassFish 4 server.
Make sure the console setting is directed at your server.log file:
