去除Jsp页面空白行

it2024-07-30  84

在Jsp页面head位置添加 <%@ page trimDirectiveWhitespaces="true" %> 在项目web.xml中添加 <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>trimSpaces</param-name> <param-value>true</param-value> </init-param> </servlet>

转载于:https://www.cnblogs.com/wave-gbt/p/jsp.html

相关资源:jsp编程去除空白行的方法
最新回复(0)