close
这是servlet的代码:
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
javax.servlet.ServletOutputStream servletoutputstream = response
.getOutputStream();
ObjectOutputStream objectoutputstream = new ObjectOutputStream(
servletoutputstream);
GraphLayout layout = new GraphLayout();
JScrollPane jpane=layout.getJpane(); //显示图形面板
objectoutputstream.writeObject(jpane);
objectoutputstream.flush();
objectoutputstream.close();
}
可以讀取 objectoutputstream
之前是用objectoutputstream讀取socket.inputstream
之後可以試著使用HTTP連伺服器
文章標籤
全站熱搜
留言列表