views:

82

answers:

1

What are the life cycle methods of a Java Server Page?

+4  A: 
  • Pre-translated: Before the JSP file has been translated and compiled into the Servlet.
  • Translated: The JSP file has been translated and compiled as a Servlet.
  • Initialized: Prior to handling the requests in the service method the container calls the jspInit() to initialize the Servlet. Called only once per Servlet instance.
  • Servicing: Services the client requests. Container calls this method for each request. Out of service: The Servlet instance is out of service. The container calls the jspDestroy() method.
ariso
Why have you replicated your question text in an answer?
John Topley
+1 Good question, good answer.
Andrew Hare
Thank you , Andrew
ariso