Topic: <jsp:include>和<%@ include %>区别是什么?

  Print this page

1.<jsp:include>和<%@ include %>区别是什么? Copy to clipboard
Posted by: wmgreat
Posted on: 2003-08-13 16:08

<jsp:include>和<%@ include %>区别是什么?一直非常迷惑,那位大侠说说,最好有个例子

2.Re:<jsp:include>和<%@ include %>区别是什么? [Re: wmgreat] Copy to clipboard
Posted by: dissip
Posted on: 2003-08-13 16:24

<%@ include %> works at compile time, while <jsp:include> works at runtime.

using <%@ include %> equals to copy the included jsp src code to the including file.
while <jsp:include> not .

3.Re:<jsp:include>和<%@ include %>区别是什么? [Re: wmgreat] Copy to clipboard
Posted by: simonli
Posted on: 2003-08-14 13:04

Yes,It is very Good!

4.Re:<jsp:include>和<%@ include %>区别是什么? [Re: wmgreat] Copy to clipboard
Posted by: looluo
Posted on: 2003-08-15 08:39

http://www-900.ibm.com/developerWorks/cn/java/j-jsp04153/
http://www-900.ibm.com/developerWorks/cn/java/j-jsp04293/

5.Re:<jsp:include>和<%@ include %>区别是什么? [Re: wmgreat] Copy to clipboard
Posted by: bbbaby
Posted on: 2003-08-18 00:05

我明白了,一个是直接编译进文件,一个是调用文件,那到底哪个的效率高呢?

6.Re:<jsp:include>和<%@ include %>区别是什么? [Re: wmgreat] Copy to clipboard
Posted by: payaqa
Posted on: 2003-08-18 13:38

还有<jsp:include>的变量不是全局的,也就是说在包含的页面中没法读到include文件里的变量,但<%@ include %>可以


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923