我从 Spring Controller ModelAndView 发送对象 org.w3c.dom.Document。所以我需要在我的jsp上打印它而不需要scriplet。有没有办法用jSTL来做到这一点? 比 X))
最佳答案
JSTL 有 XML tags 。您可以尝试<x:out>
但最好使用 Controller (或 Servlet)并将文档打印到 response.getOutputStream()
,使用我在this answer中提供的方法
关于java - 在jsp上打印org.w3c.dom.Document,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3764140/