/** * Perform tag processing * @param output the destination for output * @throws MissingAttributeException if a required attribute is missing * @throws JellyTagException on any other errors */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException( "uri" ); } try { if (uri != null) { // we need to create a new JellyContext of the URI // take off the script name from the URL context.runScript(uri, output, true, isInherit() ); } else { context.runScript(new java.io.File(file), output, true, isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not import script",e); } }
/** * Perform tag processing * @param output the destination for output * @throws MissingAttributeException if a required attribute is missing * @throws JellyTagException on any other errors */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException( "uri" ); } try { if (uri != null) { // we need to create a new JellyContext of the URI // take off the script name from the URL context.runScript(uri, output, true, isInherit() ); } else { context.runScript(new java.io.File(file), output, true, isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not import script",e); } }
/** * Perform tag processing * @param output the destination for output * @throws MissingAttributeException if a required attribute is missing * @throws JellyTagException on any other errors */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException( "uri" ); } try { if (uri != null) { // we need to create a new JellyContext of the URI // take off the script name from the URL context.runScript(uri, output, true, isInherit() ); } else { context.runScript(new java.io.File(file), output, true, isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not import script",e); } }
/** * Perform tag processing * @param output the destination for output * @throws MissingAttributeException if a required attribute is missing * @throws JellyTagException on any other errors */ public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (uri == null && file == null) { throw new MissingAttributeException( "uri" ); } try { if (uri != null) { // we need to create a new JellyContext of the URI // take off the script name from the URL context.runScript(uri, output, true, isInherit() ); } else { context.runScript(new java.io.File(file), output, true, isInherit()); } } catch (JellyException e) { throw new JellyTagException("could not import script",e); } }