Every JSP is a Servlet
Every JSP page is compiled into a servlet by JSP engine. The first time the JSP engine receives the request for a JSP, jsp engine converts the jsp files in to java servlets and than compiles this servlet, it is called the translation phase. If needed JSP pages can also be precompiled. Once the JSP page is compiled into a servlet, all the subsequent requests will be handled by the compiled servlet class. If you modify the source code of the JSP file, container automatically detects the changes and recompile the JSP page the next time that JSP page is requested.
Note: If the JSP pages are translated on demand when the container receives the request for an untranslated JSP page, then there will be a slow response for the first time any JSP page is requested. On other hand container may choose to translate the JSP pages at deployment time in that case the first request for any JSP page will take the normal time.
Note: If the JSP pages are translated on demand when the container receives the request for an untranslated JSP page, then there will be a slow response for the first time any JSP page is requested. On other hand container may choose to translate the JSP pages at deployment time in that case the first request for any JSP page will take the normal time.
Comments
Post a Comment