JSP – what happen under background?
Introduction:
The execution of the jsp files lies in a special servlet called pagecompile servlet.
This servlet works in the following manner:
1). When a web server receives a request for a page ending with .jsp, it hands over the request to the pagecompile servlet.
2). The pagecompile servlet scans a list of pages that it has cached. If the request is for a new page, the pagecompile servlet generates a new servlet for this JSP. The new servlet
Combine the content from a buffer of HTML tags with the executable java cod contained in jsp.
3). The pagecompile servlet compiles this servlet into a java class, loads the servlet and turns over execution to the service() method of the new servlet. It finally adds this servlet to its list of cached pages. For subsequent requests, procession will be immediately turned over to the service() method of this cached servlet.
No comments:
Post a Comment