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

PrintWriter out = rsp.getWriter();

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?