gpt4 book ai didi

java - 从服务器端添加 jsp 指令

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

我想做点什么

Document dom = new Document();
Element ele = new Element("jsp:include");
dom.setRootElement(ele);

但它的抛出错误我正在使用 jdom 获取 dom(org.jdom.Document, org.jdom.Element)

这样做有什么问题

最佳答案

    Namespace ns = Namespace.getNamespace("jsp", "http://java.sun.com/JSP/Page");
Element element = new Element("include", ns);
Document dom = new Document(element);

关于java - 从服务器端添加 jsp 指令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6706601/

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