In Eclipse Java EE servlet does not output to console -


i have simple servlet creates html printwriter , writes console via system.out.prinln() in same doget() method.

i see html part in eclipse (java ee perspective) there nothing in console view. should stdout servlet appear in eclipse?

code looks this:

protected void doget(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception {       printwriter out = response.getwriter();     out.println("<h2>hello applet<h2>");       system.out.println("doget"); } 

if makes difference here versions, eclipse juno, java ee 7, glassfish 4 server.

you find system.out.println outputs in web container logs i.e in galssfish logs.

eclipse prints sysout in own console standalone applications , not web applications. reason that, web applications deployed in web containers , run under containers. eclipse helps process of deploying applicaitons not deploy webapps within it. hence find logs in web container i.e glassfish.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -