/** * Parses the script from the given InputSource then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(InputSource source, XMLOutput output) throws JellyException { return runScript(source, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output) throws JellyException { return runScript(url, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output) throws JellyException { return runScript(url, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output) throws JellyException { return runScript(url, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given InputSource then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(InputSource source, XMLOutput output) throws JellyException { return runScript(source, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output) throws JellyException { return runScript(url, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given InputSource then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(InputSource source, XMLOutput output) throws JellyException { return runScript(source, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given InputSource then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(InputSource source, XMLOutput output) throws JellyException { return runScript(source, output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output, boolean export, boolean inherit) throws JellyException { return runScript(new InputSource(url.toString()), output, export, inherit); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output, boolean export, boolean inherit) throws JellyException { return runScript(new InputSource(url.toString()), output, export, inherit); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output, boolean export, boolean inherit) throws JellyException { return runScript(new InputSource(url.toString()), output, export, inherit); }
/** * Parses the script from the given URL then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(URL url, XMLOutput output, boolean export, boolean inherit) throws JellyException { return runScript(new InputSource(url.toString()), output, export, inherit); }
public String getHtml(ProjectConfigInfo projectConfigInfo) throws IOException, ClassNotFoundException, JellyException { String name = getClass().getName().replace('.', '/').replace('$', '/') + "/" + "index.jelly"; URL actionTemplate = getClass().getClassLoader().getResource(name); JellyContext context = new JellyContext(); context.setVariable("p", projectConfigInfo); context.setVariable("it", this); OutputStream outputStream = new ByteArrayOutputStream(); XMLOutput output = XMLOutput.createXMLOutput(outputStream); context.runScript(actionTemplate, output); output.flush(); return "<p>" + outputStream.toString() + " </p>"; }
/** * Parses the script from the given File then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output) throws JellyException { try { return runScript(file.toURL(), output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given file then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output, boolean export, boolean inherit) throws JellyException { try { return runScript(file.toURL(), output, export, inherit); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given file then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output, boolean export, boolean inherit) throws JellyException { try { return runScript(file.toURL(), output, export, inherit); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given File then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output) throws JellyException { try { return runScript(file.toURL(), output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given file then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output, boolean export, boolean inherit) throws JellyException { try { return runScript(file.toURL(), output, export, inherit); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given File then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output) throws JellyException { try { return runScript(file.toURL(), output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }
/** * Parses the script from the given File then compiles it and runs it. * * @return the new child context that was used to run the script */ public JellyContext runScript(File file, XMLOutput output) throws JellyException { try { return runScript(file.toURL(), output, JellyContext.DEFAULT_EXPORT, JellyContext.DEFAULT_INHERIT); } catch (MalformedURLException e) { throw new JellyException(e.toString()); } }