18 package org.turro.zul.portal.content;
20 import java.io.IOException;
21 import java.io.PrintWriter;
22 import java.io.StringWriter;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
25 import javax.servlet.ServletException;
26 import org.jdom.Element;
27 import org.turro.elephant.context.Application;
28 import org.turro.elephant.context.ElephantContext;
29 import org.turro.elephant.context.IConstructor;
30 import org.turro.zul.portal.IPortalContent;
31 import org.zkoss.zul.Html;
39 private String path, stopper;
43 root.setAttribute(
"path", path);
44 root.setAttribute(
"stopper", stopper);
50 path = root.getAttributeValue(
"path");
51 stopper = root.getAttributeValue(
"stopper",
"true");
53 StringWriter sw =
new StringWriter();
54 constructor.
setOut(
new PrintWriter(sw));
55 if(path.matches(
".*\\.(htm|html|txt)")) {
62 setContent(sw.toString());
63 }
catch (ServletException | IOException ex) {
IConstructor getConstructor()
static Application getApplication()
static String logMsg(String msg)
void setConfiguration(Element root)
void getConfiguration(Element root)
void setOut(PrintWriter out)
void includeContent(String path)
void renderContext(String path, String stopper)