我想做点什么
Document dom = new Document();
Element ele = new Element("jsp:include");
dom.setRootElement(ele);
但它的投掷错误我使用jdom来获取dom(org.jdom.Document
,org.jdom.Element
)
这样做有什么不对
答案 0 :(得分:1)
Namespace ns = Namespace.getNamespace("jsp", "http://java.sun.com/JSP/Page");
Element element = new Element("include", ns);
Document dom = new Document(element);