public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException("uri"); } // we need to create a new JellyContext of the URI // take off the script name from the URL String text = null; try { if (uri != null) { text = uri; context.runScript(uri, output, isExport(), isInherit()); } else { text = file.toString(); context.runScript(file, output, isExport(), isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not include jelly script: " + text + ". Reason: " + e, e); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException("uri"); } // we need to create a new JellyContext of the URI // take off the script name from the URL String text = null; try { if (uri != null) { text = uri; context.runScript(uri, output, isExport(), isInherit()); } else { text = file.toString(); context.runScript(file, output, isExport(), isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not include jelly script: " + text + ". Reason: " + e, e); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException("uri"); } // we need to create a new JellyContext of the URI // take off the script name from the URL String text = null; try { if (uri != null) { text = uri; context.runScript(uri, output, isExport(), isInherit()); } else { text = file.toString(); context.runScript(file, output, isExport(), isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not include jelly script: " + text + ". Reason: " + e, e); } }
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException("uri"); } // we need to create a new JellyContext of the URI // take off the script name from the URL String text = null; try { if (uri != null) { text = uri; context.runScript(uri, output, isExport(), isInherit()); } else { text = file.toString(); context.runScript(file, output, isExport(), isInherit()); } } catch (Exception e) { throw new JellyTagException("could not include jelly script: " + text + ". Reason: " + e, e); } }