首页 > 系统服务 > 详细

eclipse 执行out.request()方法提示out cannot be resolved

时间:2016-07-02 22:49:19      阅读:352      评论:0      收藏:0      [点我收藏+]

添加代码:PrintWriter out = response.getWriter();

支持中文:response.setContentType("text/html;charset=utf-8");   

 

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
PrintWriter out = response.getWriter();
response.setContentType("text/html;charset=utf-8");
out.println("<h1>您好,我叫张荟子</h1>");

}

eclipse 执行out.request()方法提示out cannot be resolved

原文:http://www.cnblogs.com/huiziz/p/5636155.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!