FileDocCategorySizeDatePackage
JellyExample.javaAPI DocExample2049Wed May 18 09:39:02 BST 2005com.discursive.jccook.script.jelly

JellyExample

public class JellyExample extends Object
Include a table of the Values in DateFormatUtils

Fields Summary
private static Logger
logger
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] pArgs)

     
        LogInit.init();
    
        JellyExample test = new JellyExample();
        test.testSimpleScript();
    
public voidtestSimpleScript()


        OutputStream output = new FileOutputStream("demopage.html");
        JellyContext context = new JellyContext();

        context.setVariable("name", "Tim O'Brien");
        context.setVariable("background", "blue");
        context.setVariable("url", "http://www.google.com");
        context.setVariable("hobbies", new Vector());

        XMLOutput xmlOutput = XMLOutput.createXMLOutput(output);
        context.runScript(getClass().getResource("template.xml"), xmlOutput);
        xmlOutput.flush();