jsp:include and include directive
来源:互联网 发布:linux挂载共享目录 编辑:程序博客网 时间:2024/05/22 12:27
1.The element allows you to include either a static or dynamic file in a JSP file. The results of including static and dynamic files are quite different. If the file is static, its content is included in the calling JSP file. If the file is dynamic, it acts on a request and sends back a result that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP file.2.The <%@ include %> directive inserts a file of text or code in a JSP file at translation time, when the JSP file is compiled. When you use the <%@ include %> directive, the include process is static. A static include means that the text of the included file is added to the JSP file. The included file can be a JSP file, HTML file, or text file. If the included file is a JSP file, its JSP elements are translated and included (along with any other text) in the JSP file. Once the included file is translated and included, the translation process resumes with the next line of the including JSP file. The included file can be an HTML file, a JSP file, a text file, or a code file written in the Java programming language. Be careful that the included file does not contain , , , or tags. Because the entire content of the included file is added to the including JSP file, these tags would conflict with the same tags in the including JSP file, causing an error.eg.Header.jspWelcome!!!Contact.jsp difference between include directive and jsp:includethere will be in the _jspService method of Contact_jsp.java. org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "Header.jsp", out, false);and Header_jsp.java file .if change the as <%@include file="Header.jsp"%>there will be static { _jspx_dependants = new java.util.ArrayList(1); _jspx_dependants.add("/Header.jsp"); }at the declaration. and Header_jsp.java file does not exist.the info in the Header.jsp file will all insert into and in Contact_jsp.java
- jsp:include and include directive
- Difference between JSP include directive and JSP include action
- Include directive and Include action
- JSP - Include Directive
- [Jweb] JSP-编程 02 (Directive-include)
- Include directive and variable scope in PHP
- 区别include jsp:include
- include和jsp:include
- jsp include与include
- <jsp:include...>和<%@include %>
- <%@ include%>与<jsp:include>
- include -include and sinclude
- jsp:include
- <jsp:include>
- jsp include
- jsp:include
- <jsp:include>
- <jsp:include>
- 用委托来实现子窗体操作父窗体中的控件
- 再谈Hibernate缓存
- 门户通专访朱则荣老师:中国网站培训第一人
- 门户通专访草根站长九天狼:做站贵在坚持
- occ 入门 - 实验工具:Draw Test Harness
- jsp:include and include directive
- 门户通专访seo专家阿猎:站长要多研究多实践
- 门户通专访前CHINAZ总监胡扬:他的传奇故事
- 关于hibernate缓存 转自javaeye
- archLinux opera 与 SCIM 冲突解决
- 门户通专访网星创始人王晨昀:站长该如何寻求突破
- 门户通专访易名中国CEO孔德菁:域名投资 站长该怎么做
- 什么是JMX
- 微软终于向PHP招手了啊,呵呵