June 2012
Intermediate to advanced
386 pages
10h 7m
English
It is reiterated that a JSP is converted into a Servlet, so in many aspects they share similar life cycles (Figure 6.1).
Fig. 6.1 JSP lifecycle
However, they share different names. The initialization corresponds to jspInit(); Service corresponds to jspService(); and the destruction to jspDestroy(). The JSP is translated into a Servlet and compiled the first time it is changed/created. Subsequently, it is ready for requests.
As mentioned earlier, a JSP script is translated into Servlet code and then compiled into a Java Servlet class. The methods that a custom Servlet overrides are its Service ...
Read now
Unlock full access