`
本来不想注册
  • 浏览: 190854 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

The include directive And <jsp:include>

阅读更多
The include directive inserts the SOURCE of JSP or HTML files at translation time.
But the <jsp:include/> standard action inserts the RESPONSE of the JSP or HTML files at runtime.

There is an exra perfermance hit with every <jsp:include>. With directive, on the other hand, the hit happens only once --- when the including page is translated.

So if you're pretty sure that once you go to production the including file won't change, the directive might be the way to go. Of course there's still tradeoff that the generated servlet class is a little larger when you use the directive.

Tip:如果including page是经常改动的,则应该使用 <jsp:include/>

分享到:
评论

相关推荐

    NewBlogOnline

    &lt;jsp:directive.page import="org.zjy.service.BlogService"/&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt; &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;% String id=request.getParameter("id")...

    The Art of Assembly Language Programming

    Some Final Comments on the MOV Instructions&lt;br&gt;&lt;br&gt;4.9 Laboratory ...and CodeView'&lt;br&gt;4.9.5.1 A Quick Look at CodeView&lt;br&gt;4.9.5.2 The Source Window&lt;br&gt;4.9.5.3 The Memory Window&lt;br&gt;4.9.5.4 The Register ...

    JSP/Servlet

    &lt;jsp:include&gt;、 &lt;jsp:forward&gt;、&lt;jsp:param&gt;、&lt;jsp:params&gt; JSP 與 Model 1 架構 在HTML標籤間混合程式碼會使得程式邏輯與網頁邏輯都難以維護,Model 1是將程式碼與網頁邏輯分離的一種架構,JSP中有一些技術用...

    终于搞懂了,预编译头文件

    我们&lt;br&gt;&lt;br&gt;会发现这个头文件里包含了以下的头文件:&lt;br&gt;&lt;br&gt;#include &lt;afxwin.h&gt; // MFC core and standard components&lt;br&gt;&lt;br&gt;#include &lt;afxext.h&gt; // MFC extensions&lt;br&gt;&lt;br&gt;#include &lt;afxdisp.h&gt; // MFC ...

    Practical Mod Perl

    Copyright &lt;br&gt; Preface &lt;br&gt; What You Need to Know &lt;br&gt; Who This Book Is For &lt;br&gt; How This Book Is Organized &lt;br&gt; Reference Sections &lt;br&gt; Filesystem Conventions &lt;br&gt; Apache and Perl Versions &lt;br&gt; ...

    ajax无刷新来聊天代码

    &lt;jsp:directive.page import="com.yeeyoo.model.*"/&gt; &lt;jsp:directive.page import="com.yeeyoo.Bo.*"/&gt; &lt;% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request....

    ajax无刷新聊天代码

    &lt;jsp:directive.page import="com.yeeyoo.model.*"/&gt; &lt;jsp:directive.page import="com.yeeyoo.Bo.*"/&gt; &lt;% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request....

    mirrors-draggable-vue-directive-master.zip

    2.&lt;div v-draggable&gt; classic draggable &lt;/div&gt; 3. import { Draggable } from 'draggable-vue-directive' ... export default { directives: { Draggable, }, ... 4.&lt;div v-draggable="draggableValue"&gt; ...

    JSP Simple Examples

    &lt;jsp:include page = " "&gt;:- This is known as the include standard action. This standard action is used to include a file at run time. This standard action is evaluated at the run time. Snoop in JSP ...

    r40_tinav2.1_最终验证通过_使用CB-S来验证SPI2.0成功_20171114_0945没有外层目录.7z

    #include &lt;linux/spi/spidev.h&gt; #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) static void pabort(const char *s) { perror(s); abort(); } //static const char *device = "/dev/spidev0.0"; //static...

    freemarker总结

    其它的运行符可以作用于数字和日期,但不能作用于字符串,大部分的时候,使用gt等字母运算符代替&gt;会有更好的效果,因为 FreeMarker会把&gt;解释成FTL标签的结束字符,当然,也可以使用括号来避免这种情况,如:&lt;#if (x&gt;y)&gt; ...

    AngularJS中的Directive自定义一个表格

    &lt;td&gt;&gt;&lt;/td&gt; &lt;td&gt;&gt;&lt;/td&gt; &lt;td&gt;&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;div&gt;4行&lt;/div&gt; ● 点击某个th,就对该列进行排序 ● 可以给表头取别名 ● 可以设置某个列是否显示 ● 表格下方有一行显示总行数 我们希望表格按如下方式...

    DIRECTIVE 2014-40-EU OF THE EUROPEAN PARLIAMENT AND OF THE COUNC

    DIRECTIVE 2014-40-EU OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL.zip

    C# 语法参考

    &lt;br/&gt;input-section-part:(输入节部分:) &lt;br/&gt;input-elementsopt new-line(输入元素可选 新行)&lt;br/&gt;pp-directive(pp 指令) &lt;br/&gt;input-elements:(输入元素:) &lt;br/&gt;input-element(输入元素)&lt;br/&gt;input-...

    第4章 JSP服务器对象

    &lt;%@ directive attribule= "value" %&gt; &lt;%@ directive attribule1= "value1" attribule2= "value2" … attribuleN= "valueN" %&gt; 4.1.1 include编译命令 JSP语法中的include指令语句指示在JSP语句被解释的...

    详解angular 中的自定义指令之详解API

    -- directive: my-dir exp --&gt; &lt;span class=my-dir:&gt;&lt;/span&gt; 简单创建一个指令 html结构: &lt;div ng-controller=myCtrl&gt; &lt;div&gt;&lt;/div&gt; &lt;/div&gt; JavaScript结构: angular.module('myApp', []) .controller('...

    visual assist v 10.4.1632 with crack

    (case=9436) &lt;br&gt;STL list&lt;&gt; and vector&lt;&gt; member lists appear correctly following a "using namespace std::list" or "using namespace std::vector" directive. (case=12345) 7226 &lt;br&gt;Empty C++ preprocessor ...

    数据库系统描述(连接出错后的对策)

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example: &lt;%@ Page Language="C#" Debug="true" %&gt; or: 2) Add the following section to the configuration file of your ...

    vue-cli 自定义指令directive 添加验证滑块示例

    vue项目注册登录页面遇到了一个需要滑块的功能,网上看了很多插件发现都不太好用,于是自己写了一个插件供大家参考;... &lt;div class=txt id=txt&gt;拖动滑块验证&lt;/div&gt; &lt;div class=move&gt;&lt;/div&gt; &lt;/div&gt; &lt;div cl

    vue-frag:ue Vue 2片段指令返回多个根元素

    &lt; div&gt; :left_arrow: This root element is unwrapped and removed on render! &lt; li&gt;Element 1&lt;/ li&gt; &lt; li&gt;Element 2&lt;/ li&gt; &lt; li&gt;Element 3&lt;/ li&gt; &lt;/ div&gt; &lt;/ template&gt; :backhand_index_pointing_right: 试用...

Global site tag (gtag.js) - Google Analytics