Home Jsp JSP Page Architecture and its life cycle
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

JSP Page Architecture and its life cycle

Advertisement
In this article, we have discussed the architecture of JSP and the interfaces provided with in 'javax.servlet.jsp package'. Whereas the JSP Architecture diagram explains the complet architecture of Java Server Faces. This tutorial will also help you understand the complete life cycle of Java Server Faces.

In this article, we are discussing the fundamentals of JSP architecture and it's life cycle. In short, Java Server Pages(JSP) is a high level extension of servlet, which is used to deliver HTML and XML documents. Using JSP one can easily embed Java Codes into HTML Pages.

Also if we look at the functionality, JSP code get translated into servlets at runtime by the JSP engine, which is chached and reused until the orignal JSP Servlet Code is modified by the programmer.

JSPPage and HttpJspPage are the interfaces that is defined into 'javax.servlet.jsp' package that contains the life cycle methods of complied JSP Page.

jspInit(), jspDestroy() and _jspService(HttpServletRequest request,HttpServletResponse response) are the life cycle methods of the compiled JSP page.

Diagram of JSP Architecture:

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 5, 2013

Related Tutorials

Ask Questions?    Discuss: JSP Page Architecture and its life cycle  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com