Java 从服务器端添加jsp指令
我想做点像Java 从服务器端添加jsp指令,java,jdom,Java,Jdom,我想做点像 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/Pag
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);