The orders to compile jsp
来源:互联网 发布:ubuntu su 认证失败 编辑:程序博客网 时间:2024/04/29 13:56
(The Information is from http://www.jguru.com/faq/view.jsp?EID=421448. If any question, pls tell me to delete it immediately. )
When a jspcompiler compiles the jsp page, in what order does it get compiled?Specifically if I have scriptlets ,tags, includes and expressions, whatwould be the order of compilation for these four. Is there a documentsomewhere that defines this?
The answer:
The order of compilation it's really based on the jsp page itself.
The JSP page is converted to a java source file. This is done insertingthe "content of the page" inside a skeleton. The order is the sameorder that you have in the page.
Let's suppose that in the page there are:
1) a scriptlet
2) a custom tag
3) static html
4) a jsp:include
5) an expression
6) an page include
the java generated file will contain:
1) the scriptlet code
2) the custom tag creation; all attributes are converted to tag setters
3) static html will be converted with something similar to response.getWriter().write(<the static html>)
4) the call for including the external file
5) the expression converted to java code for output
6) the content of the included page inserted in the java code.
As you can see, there is no specific order. Once the java source fileis created, the compiler takes care of generating the servlet code,following the normal process.
- The orders to compile jsp
- Failed to compile JSP The method setInitCharacterEncoding(String, boolean)
- Unable to compile JSP
- 49.The ORDERS table belongs to the user OE. OE has granted the SELECT privilege on the ORDERS table
- Unable to compile class for JSP: An error occurred at line: 192 in the jsp file: /admin/user/userMan
- Unable to compile class for JSP解决方案
- Unable to compile class for JSP
- Unable to compile class for JSP
- Unable to compile class for JSP
- Unable to compile class for JSP
- Unable to compile class for JSP
- Unable to compile class for JSP 解决办法
- Unable to compile class for JSP 解决方法
- Unable to compile class for JSP:
- Unable to compile class for JSP
- JavaWeb:Unable to compile class for JSP
- Unable to compile class for JSP
- Unable to compile class for JSP
- Qualcomm QTV Player
- 指令的执行过程
- (转)ACE示例3 - ACE Proactor
- 汇编指令与对应的机器指令
- (转)ACE 示例2 --- Echo Server
- The orders to compile jsp
- centos安装(双系统) 先windows再linux
- SCJP认证 1.5.4(1) 变量声明
- delphi中TWebBrowser控件增强版
- RCP工程如何加入第三方jar包(与一般java application 不同!!!)
- JIT脚本引擎:将汇编指令转换为机器码
- socket通信简介
- VB基础4
- 【转】Linux多点触控协议