1.在建立的 WEB 工程中建立 include.jsp 文件,top.txt 文件和 bottom.txt 文件。源代
码如下:
include.jsp
<%@ page contentType="text/html;charset=gb2312"%><%@ include file="top.txt"%><p align="center"><%out.println("此书出版了,快来看看吧!还有更多的好书等着您呢!");%></p><%@ include file="bottom.txt"%>
top.txt
<html><head><title>《JSP 从入门到实战》网站</title></head><body><p align="center"><b><font size="5">《JSP 从入门到实战》网站</font></b></p>
bottom.txt
<hr><p align="center"><font size="3">@电子工业出版社版权所有 -</font><br><font size="3">制作人:邓子云</font><br><font size="3">联系方式:dengziyun@</font><br></body></html>
2.部署并浏览该页面。
思考:如果将 top.txt 和 bottom.txt 改为 bottom.jsp 和 top.jsp,上述程序会出错吗?
错了如何改正?