Java Reference
In-Depth Information
F
IGURE
15.3
Output from
GetFromApplication.jsp
.
The
out
Object
The implicit
out
object is a very simple object that represents a reference to a
JspWriter
,
which is derived from a
java.io.Writer
. You can see how the
out
object is initialized in the
following code snippet that was pulled from a JSP's generated servlet:
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
15
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType(“text/html”);
pageContext = _jspxFactory.getPageContext(this, request, response,
“errorpage.jsp”, true, 8192, true);