1 package org.enhydra.barracuda.tutorials.comp; 2 3 import java.io.*; 4 import java.util.*; 5 import javax.servlet.*; 6 import javax.servlet.http.*; 7 8 import org.w3c.dom.*; 9 import org.enhydra.xml.xmlc.*; 10 11 import org.enhydra.barracuda.core.comp.*; 12 import org.enhydra.barracuda.core.util.dom.*; 13 import org.enhydra.barracuda.tutorials.xmlc.*; 14 15 19 public class HelloWorld2bHeader { 20 21 public static Node getNode(ViewContext vc) { 22 return getNode(vc.getElementFactory().getDocument()); 23 } 24 25 public static Node getNode(Document doc) { 26 Document footer = null; 29 try {footer = DefaultDOMLoader.getGlobalInstance().getDOM(HelloWorld2b_headerHTML.class);} 31 catch (IOException ioe) {} 32 Node footerNode = ((HelloWorld2b_headerHTML)footer).getElementFooter(); 33 return doc.importNode(footerNode, true); 34 } 35 } 36 | Popular Tags |