Java Servlets
doHead(), instead the
service() method calls doGet()import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); if (req.getMethod().equals("HEAD")) return; //its really a GET..... } }
13 of 89