JSP Life Cycle
a.)InstantiationEvent(when container creates JES class object) Life cycle methods These life cycle methods will be called through servlet life cycle method(init(ServletConfig)) 1.) jspInit()->for programmers initailization logic 2.) _jspInit()->for container initialization logic b.)Request Processing Event Life cycle methods These method will be called through servlet life cycle method 1st service(req,res) 1.) _jspService(-,-) c.)Destruction Event(When container is about to destroy JES class object) Life cycle methods These methods will be called through destroy() life cycle method of servlet component 1.) jspDestroy()-->for programmer 2.) _jspDestroy()-->for container JSP life cycle methods are called through servlet life cycle methods with support of JES class super class(HttpJspBase in tomcat server) Two phases of JSP a.)Phase-1(Translation Phase) Here jsp pages will be translated into an equivalent servlet class...
Comments
Post a Comment
Express your feelings