out.println("<HTML><HEAD><TITLE>"); out.println("Cookie using servlets"); out.println("</TITLE></HEAD></BODY>")
The problem might be in what I have made bold. the body tag here is an ending tag and not starting tag. open the page in a browser, then if you get no output, view the source of the page from the browser. the content might be there but it is not getting displayed...