使用page指令设置content Type属性的值为"text/plain ",使用include指令静态插入hello.txt文件

img

img

我的hello文件在jsp页面同一个目录里啊😫怎么还是找不到😫

为什么用txt文本文件。
你试试jsp文件后缀行不行,改一下文件后缀。

<%@include file="hello.jsp" %>

在hello.txt前面加一个./试试

<%@include file="./hello.txt" %>