JSP page life cycle

          
Download HR interview
Download CV samples
Download IT interview

JSP: Page Life Cycle

NEXT>>
JSP page life cycle - posted by Nishant

JSP page life cycle

Answer
JSP page life cycle includes 3 methods

jspInit() method
This initializes the JSP.

_jspService()
Each time a request comes to the JSP, _jspService() method is invoked, the request is processed and response is generated.

jspDestroy()
This method is used for clean process and is called when JSP is destroyed by the server.


JSP page life cycle - posted by Vidya Sagar

JSP page life cycle

A request from a browser is served as servlet in JSP. In this way the lifecycle and certain capabilities of JSP are determined by a servlet.

At the time of mapping a request to a JSP, that request is handled by a special servlet which checks the JSP’s servlet is older than the JSP. If so, the JSP is translated into a servlet class and compiles. The build process of a web application is done automatically, by using JSP over servlet.

NEXT>>

Write your comment - Share Knowledge and Experience

More JSP Links

Explain JSP Scripting Elements.

Answer - There are three forms of JSP scripting elements that let you insert Java code....... 

Explain the difference between JSP include directive and JSP include action.

Answer - When a JSP include directive is used, the included file's code is added into.....

What is a Declaration?

Answer - A declaration consists of one or more variables or methods that are used in JSP source.......

Explain how to use JavaBeans components (beans) from a JSP page?

Answer - The JSP specification includes standard tags for bean use and manipulation.......

 
Latest placement tests
Latest links
 
Home | Write for us and earn | My key skills | About us | Sitemap | Contact us