|
① 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 ) ; void print( Object obj ) ; void print( String s ) ; 将指定类型的数据输出到Http流,不换行。
10. void println( boolean b ) ; void println( char c ) ; void println( char[] s ) ; void println( double d ) ; void println( float f ) ; void println( int i ) ; void println( long l ) ; void println( Object obj ) ; void println( String s ) ; 将指定类型的数据输出到Http流,并输出一个换行符。 11. Appendable append( char c ) ; Appendable append( CharSequence cxq, int start, int end ) ; Appendable append( CharSequence cxq ) ; 将一个字符或者实现了CharSequence接口的对象添加到输出流的后面。
成员: int DEFAULT_BUFFER = 0 - 缺省缓冲区大小 int NO_BUFFER = -1 - writer是否处于缓冲输出状态 int UNBOUNDED_BUFFER = -2 - 是否限制缓冲区大小
② request - javax.servlet.http.HttpServletRequest request对象包含所有请求的信息,如请求的来源、标头、cookies和请求相关的参数值等。
方法:
上一篇:JSP表达式语言
下一篇:JSP页面文件目录树源码(递归算法)
|