Thanks again.. But please clarify a few things ..I m novice to both java and servlets!!!

rsp.setContentType("text/html");
PrintWriter out = rsp.getWriter();
out.println("<html>");


response object is used to set the header content type ,PrintWriter object to write to char streams ..But my question is "what happens in the mapping of PrintWriter out=rsp.getWriter()"
Can you please give details a bit more?