JspConfigNodepublic class JspConfigNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode This node represents the element in a web application. |
Constructors Summary |
---|
public JspConfigNode()
super();
registerElementHandler(new XMLElement(WebTagNames.TAGLIB), TagLibNode.class, "addTagLib");
registerElementHandler(new XMLElement(WebTagNames.JSP_GROUP), JspGroupNode.class, "addJspGroup");
|
Methods Summary |
---|
public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.JspConfigDescriptor descriptor)write the descriptor class to a DOM tree and return it
Node myNode = appendChild(parent, nodeName);
TagLibNode lNode = new TagLibNode();
for(Enumeration en = descriptor.getTagLibs(); en.hasMoreElements();) {
lNode.writeDescriptor(myNode, WebTagNames.TAGLIB,
(TagLibConfigurationDescriptor) en.nextElement());
}
JspGroupNode jspGroup = new JspGroupNode();
for(Enumeration en = descriptor.getJspGroups(); en.hasMoreElements();) {
jspGroup.writeDescriptor(myNode, WebTagNames.JSP_GROUP,
(JspGroupDescriptor) en.nextElement());
}
return myNode;
|
|