Service threw an exception during method invocation: null错误

来源:互联网 发布:js 对象长度 编辑:程序博客网 时间:2024/05/16 08:13

Java For Flash书中 102页, 加一行 response.getOutputStream().print("Ok");就可以

  public void service(ServletRequest request, ServletResponse response)
       throws  ServletException, IOException {
                   request.setAttribute("FLASH.RESULT", "TEST Java For Flash!");

                   response.getOutputStream().print("Ok");

  }