Java Reference
In-Depth Information
}
catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clear();
pageContext.handlePageException(ex);
}
finally {
out.flush();
jspxFactory.releasePageContext(pageContext);
}
}
You don't need to dig too deeply into this code, because it is generated for you. You just need
to understand that it is being generated by the JSP engine and is the JSP equivalent to a
servlet's service() method. It is also important to know that the JSP engine creates a servlet
equivalent to the init() and destroy() methods.
Summary
In this chapter we covered quite a bit of information. We also covered the basics of JSP and the
components of JSPs. You now should be able to create a JSP document and understand what is
happening behind the scenes during request time. You should also understand the process a JSP
file goes through when it is first requested.
In the next chapter we will discuss the implicit objects available in the JSP architecture.
Search WWH ::




Custom Search