码迷,mamicode.com
首页 > Web开发 > 详细

How JSP work.

时间:2014-06-08 00:18:41      阅读:523      评论:0      收藏:0      [点我收藏+]

标签:des   c   style   class   blog   code   

A JSP page exists in three forms:

  • JSP source code:
    • consists of a mix of HTML template code.
    • Java language statements.
    • JSP directives and actions that describe how to generate a Web page to service a particular request.
  • Java source code.
  • Compiled Java class.

Figure 5-1 illustrates the process used by the JSP container.

bubuko.com,布布扣   

  When a request for a JSP page is made, the container first determines the name of the class corresponding to the .jsp file.

  If the class doesn’t exist or if it’s older than the.jsp file (meaning the JSP source has changed since it was last compiled),

then the container creates Java source code for an equivalent servlet and compiles it.

  If an instance of the servlet isn’t already running,

the container loads the servlet class and creates an instance.

  Finally, the container dispatches a thread to handle the current HTTP request in the loaded instance.

 

 

 

How JSP work.,布布扣,bubuko.com

How JSP work.

标签:des   c   style   class   blog   code   

原文地址:http://www.cnblogs.com/listened/p/3774625.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!