In the life cycle of a jsp it becomes a servlet and ends with a .class file. First the jsp translates and then it compiles. Then as same as a servlet its jspInit() method (in servlets it is init()) runs and it is instantiated. Then all the requests for this are handled by the _jspService() method. and when this is going to end(life cycle) the jspDestroy() method runs. we can override the jspInit() and the jspDestroy() methods for our purposes which we will discuss later. but we cant override the _jspService() method.
As we are familliar with html we have to know how we can write java inside these html pages. We will discuss that in the next section.
****
for servlets visit http://myservlet.blogspot.com
****
No comments:
Post a Comment