Originally Posted by sakthi.abdullah
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?
simply returns a "PrintWriter" object that can send character text to the client. so ofcourse u have PrintWriter's object as a return value which u r assigning to a 'out' which is ev1 a object of printWriter class