Package org.apache.ecs.html

Examples of org.apache.ecs.html.Body.addElement()


        // --------------
        // Message pop up
        // --------------
        if(message != null) {
            body.addElement(new Script().setLanguage("JavaScript").addElement(
                "alert('" + message + "')"));
        }

        Document document = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html()
View Full Code Here


        if(toHead != null)
            head.addElement(toHead);

        Document doc = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html().addElement(head).addElement(
                body.addElement(tabGenerator.getTabSet(tabSetId, tabId, new ElementContainer()
                    .addElement(content), MENU_FILE, standaloneZones, lang))));
        doc.output(out);
    }

    public void outputErrorPage(Throwable e, PrintWriter out) {
View Full Code Here

        doc.output(out);
    }

    public void outputErrorPage(Throwable e, PrintWriter out) {
        Body body = getBody();
        body.addElement(new H1("ERROR!")).addElement(new PRE().addElement(Utils.getStackTrace(e))
//          .addElement(e.getCause().toString())
            );

        Document doc = new Document().setDoctype(new Doctype.Html40Transitional()).setHtml(
            new Html().addElement(new Head()).addElement(body));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.