我想删除JSP页面输出的所有“\ n”。如何删除JSP页面中的所有“ n”? (使用javax.servlet.Filter?)
我想我应该使用过滤器。
,但我不知道该怎么做
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)throws IOException, ServletException {
//how to remove all "\n" for output?
}
什么想法?感谢您的帮助:)