放在包里的servlet提示println未定义
我有一段HelloServlet的代码,使用了包和实用工具类ServletUtilities,将HelloServlet.java放到src下面的coreservlets包里后,编译不通过:The method Println(String) is undefined for the type PrintWriter.
请问这是怎么回事啊?
------解决方案--------------------PrintWriter out = Response.getWriter();
out.println( "asdf ");