实验要求
编写一个JSP页面includeHello.jsp,使用include指令在JSP 页面中静态插入hello.txt的内容。要求用“记事本”编写一个txt文件hello.txt.hello.txt的每行有若干个英文单词,这些单词之间用空格分隔,每行之间用“<br>”分隔,如下:
hello.txt
<%@ page contentType="text/html;charset=utf-8" %>
bird apple boy red moon
<br>
鸟 苹果 男孩 红色 月亮
includeHello.jsp
<%@ page contentType="text/html;charset=utf-8" %>
<html>
<body>
<%@ include file="hello.txt" %>
</body>
</html>
运行结果: