I have seen in some servlet programs, System.out.println()
statements. Do they work? If so where are they printed? I have checked the Web console in the browser. But I couldn't see it?
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class MyServlet extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
System.out.println("This is in System.out.println()");
}
}
Because this program is not executed in command prompt, where will the output be printed? Is there any console in the browser that can print this?