786snow
Programmer
- Nov 12, 2006
- 75
Hi,
In my Javasevlet I am creating the following html, but when I hit the sevlet with brower instead of printing only "whats up", i see the whole string
"<html><body><h1>whats up</h1></body></html>"
********************
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
PrintWriter out = res.getWriter();
out.println("<html><body><h1>whats up</h1></body></html>");
}
I don't know why?
In my Javasevlet I am creating the following html, but when I hit the sevlet with brower instead of printing only "whats up", i see the whole string
"<html><body><h1>whats up</h1></body></html>"
********************
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
PrintWriter out = res.getWriter();
out.println("<html><body><h1>whats up</h1></body></html>");
}
I don't know why?