-1
爲什麼我們用ServletResponse
對象引用來調用getWriter()
方法?爲什麼我們使用ServletResponse對象引用來調用getWriter()
protected void doPost(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException {
PrintWriter pw=res.getWriter();
res.setContentType("text/html");