Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做类似的事情
Document dom = new Document(); Element ele = new Element("jsp:include"); dom.setRootElement(ele);
但它的抛出错误我使用 jdom 来获取 dom( org.jdom.Document, org.jdom.Element)
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);