日期:2014-05-16  浏览次数:20321 次

jsp 九大内置对象补充部分

①?out?-?javax.servlet.jsp.jspWriter

???out对象用于把结果输出到网页上。

?

方法:

1.?void?clear()?;

???清除输出缓冲区的内容,但是不输出到客户端。

?

2.?void?clearBuffer()?;

???清除输出缓冲区的内容,并输出到客户端。

?

3.?void?close()?;

???关闭输出流,清除所有内容。

?

4.?void?flush()?;

???输出缓冲区里面的数据。

?

5.?int?getBufferSize()?;

???获取以kb为单位的目前缓冲区大小。

?

6.?int?getRemaining()?;

???获取以kb为单位的缓冲区中未被占用的空间大小。

?

7.?boolean?isAutoFlush()?;

???是否自动刷新缓冲区。

?

8.?void?newLine()?;

???输出一个换行字符。

?

9.?void?print(?boolean?b?)?;

???void?print(?char?c?)?;

???void?print(?char[]?s?)?;

???void?print(?double?d?)?;

???void?print(?float?f?)?;

???void?print(?int?i?)?;

???void?print(?long?l?)?;