gpt4 book ai didi

java - 在jsp上打印org.w3c.dom.Document

转载 作者:行者123 更新时间:2023-11-30 05:10:01 25 4
gpt4 key购买 nike

我从 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com