eclipse 执行out.request()方法提示out cannot be resolved
Posted 糖葫芦有点甜
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse 执行out.request()方法提示out cannot be resolved相关的知识,希望对你有一定的参考价值。
添加代码: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的主要内容,如果未能解决你的问题,请参考以下文章
JSP最常用的五种内置对象(out,request,response,session,application)