用JAVA拼凑的html字符串怎样在页面中显示解决办法

2024-11-18 02:25:23
推荐回答(1个)
回答1:

response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("");
out.println(" ");
out.println(" ");
out.println("");
out.flush();
out.close();
输出流写到页面就好了