<jsp:include>在性能上要比<%@ include=...%>差一些,因为可能要被重新编绎,但是它可以带参数:
<jsp:include>
<jsp:param name= value=>
</jsp:cinclue>
<%@ include file=...>一般是包含一个静态页面
<jsp:include>
<jsp:param name= value=>
</jsp:cinclue>
<%@ include file=...>一般是包含一个静态页面
解决方案 »
- 程序经常抛出Exception in thread "Timer-1" java.lang.NullPointerException
- heritrix网页登陆后设置选项无MirrorWriterProcessor只有默认的ARCWriterProcessor,且不可修改添加
- 下面代码在chrome中不能调用javascript函数
- ~~~~~求教一个关于JSP的问题~~~~
- 请问怎么把内容写入properties文件?
- 搞不懂!
- 想问一个关于学生选课系统的问题
- Struts2 异常如何捕获处理
- jsp+bean分页的问题,实在是解决不了了,请大虾快出手!100相送
- 在Tomcat 5.0下面如何发布程序啊?分有的啊!!(刚才打错了!)
- 怎样在jsp中产生当前的时间?时间的格式怎样设定?谢谢!
- 搜索问题,怪事,救救我
<jsp:include file=...>加入的文件其scope不是同一个page,但是同一个request的。
这个对于用到session的scope属性时有影响,不过我建议用<jsp:include>毕竟我不知道我们什么时候会改一下include的文件。
<jsp:include file=...>加入的文件其scope不是同一个page,但是同一个request的。
这个对于用到session的scope属性时有影响,不过我建议用<jsp:include>毕竟我不知道我们什么时候会改一下include的文件。
Changing included file does not necessarily cause retranslation
of JSP document. You have to manually change JSP document or update its modification date.
<jsp:include page="Relative URL" flush="true" /> Including Files at Request Time
The jsp:include action includes files at the time of the cli-
ent request and thus does not require you to update the main file when anincluded file changes. On the other hand, the page has already been translated into a servlet by request time, so the included files cannot contain JSP.