找回密码
 注册
搜索
热搜: 回贴

JSP学习笔记(八)-----include的运用

2009-12-22 00:24| 发布者: admin| 查看: 67| 评论: 0|原作者: 仙剑

1. 向JSP页面中插入指定的页面方法有两种:

JSP命令<%@ include%>
JSP动作<jsp:include />

2. a.jsp代码如下:

<html>huanghui
<%@ include file="b.jsp"%>
<jsp:include page="b.jsp" flush="true"/>
</html>

3. b.jsp代码如下:

<html>hello</html>

最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 03:21 , Processed in 0.228580 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部