日期:2014-05-18 浏览次数:20894 次
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html charset=utf-8"); PrintWriter out = response.getWriter(); out.println(" <html>"); out.println(" <title> <head>display message </head> </title>"); out.println(" <body>"); out.println(" <a href='/guestbook/servlet/message'>添加留言 </a></br>"); out.println(" </body>"); out.flush(); out.close(); }