通过htmltidy提供呈现的jsp页面 [英] Feed rendered jsp pages through htmltidy

查看:104
本文介绍了通过htmltidy提供呈现的jsp页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Glassfish上运行的Java项目,它呈现了一些丑陋的HTML。它是使用各种内部和外部JSP库的副作用。我想设置一些后渲染过滤器,通过HTMLTidy提供最终的HTML,以便源代码很好,并且整齐有助于调试。这可能吗?

I have a Java project running on Glassfish that renders some ugly looking HTML. Its a side effect from using various internal and external JSP libraries. I would like to set up some sort of post-render filter that would feed the final HTML through HTMLTidy so that the source is nice and neat to aid debugging. Is this possible?

在服务器将JSP呈现为HTML后,是否有内置的机制来执行某些操作?
该行动可以将生成的HTML作为字符串并对其进行操作吗?
是否有一些简单的内置选项可以在没有额外编码的情况下执行此操作?

Is there a built in mechanism to perform some action after the server renders the JSPs into HTML? Can that action get the generated HTML as a string and manipulate it? Is there some easy built-in option to do this without extra coding?

推荐答案

JTidyFilter

这篇关于通过htmltidy提供呈现的jsp页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆