JSP Response.getOutputStream()方法:获取JSP应答对象的输出流
该方法用于获取 JSP 应答对象的输出流。
语法:
getOutputStream()
返回值:JSP 页面的输出流对象。
示例
<%
ServletOutputStream os = response.getOutputStream();
os.write("<b>Java编程词典</b>".getBytes());
os.close();
%>
该方法用于获取 JSP 应答对象的输出流。
语法:
getOutputStream()
返回值:JSP 页面的输出流对象。
<%
ServletOutputStream os = response.getOutputStream();
os.write("<b>Java编程词典</b>".getBytes());
os.close();
%>
发表评论