通过out.print()输出html没内容,但是没报错

程序中servlet用jsp来实现的,读取已经写好的html模板代码,用out.print()来输出页面
但是现在碰到一个问题,输出时候会有空白没有内容,然后tomcat日志中查看并没有报错信息,服务器返回200正常.
图片说明

public PrintWriter out =null; 
out = this.response.getWriter();
out.print(str);//输出html代码
out.flush();
out.close();

目前还没找到原因是为什么导致.请各位大佬帮我瞅瞅可能是哪边的问题....

https://blog.csdn.net/y694721975/article/details/53048019