Friday, 5 July 2013

JSP Architechture

// siddhu vydyabhushana // 3 comments



  1. User requesting a JSP page through internet via web browser.
  2. The JSP request is sent to the Web Server.
  3. Web server accepts the requested .jsp file and passes the JSP file to the JSP Servlet Engine.
  4. If the JSP file has been called the first time then the JSP file is parsed otherwise servlet is instantiated.
  5. The next step is to generate a servlet from the JSP file. In that servlet file, all the HTML code is converted in println statements.
  6. Now, The servlet source code file is compiled into a class file (bytecode file).
  7. The servlet is instantiated by calling the init and service methods of the servlet’s life cycle.
  8. Now, the generated servlet output is sent via the Internet form web server to user's web browser.
  9. Now in last step, HTML results are displayed on the user's web browser.

3 comments: