/** * Helper method to run any nested param tags * * @param output The destination for any SAX output (not actually used) */ private void doNestedParamTag(XMLOutput output) throws JellyTagException { // find any nested param tags and run them Script bodyScript = this.getBody(); if (bodyScript instanceof ScriptBlock) { ScriptBlock scriptBlock = (ScriptBlock) bodyScript; List scriptList = scriptBlock.getScriptList(); for (Iterator iter = scriptList.iterator(); iter.hasNext(); ) { Script script = (Script) iter.next(); if (script instanceof TagScript) { Tag tag = null; try { tag = ((TagScript) script).getTag(getContext()); } catch (JellyException e) { throw new JellyTagException(e); } if (tag instanceof ParamTag) { script.run(context, output); } } } } }
final Object oldParent=context.getVariables().get(PARENT_TAG); try { Tag tag = getTag(context); if ( tag == null ) { return;
URL currentURL = context.getCurrentURL(); try { Tag tag = getTag(context); if ( tag == null ) { return;
/** * Compiles a newly created tag if required, sets its parent and body. */ protected void configureTag(Tag tag, JellyContext context) throws JellyException { if (tag instanceof CompilableTag) { ((CompilableTag) tag).compile(); } Tag parentTag = null; if ( parent != null ) { parentTag = parent.getTag(context); } tag.setParent( parentTag ); tag.setBody( tagBody ); if (tag instanceof NamespaceAwareTag) { NamespaceAwareTag naTag = (NamespaceAwareTag) tag; naTag.setNamespaceContext(getNamespaceContext()); } if (tag instanceof LocationAware) { applyLocation((LocationAware) tag); } }
Tag tag = getTag(context); if ( tag == null ) { return;
Tag tag = getTag(context); if ( tag == null ) { return;
/** * Compiles a newly created tag if required, sets its parent and body. */ protected void configureTag(Tag tag, JellyContext context) throws JellyException { if (tag instanceof CompilableTag) { ((CompilableTag) tag).compile(); } Tag parentTag = null; if ( parent != null ) { parentTag = parent.getTag(context); } tag.setParent( parentTag ); tag.setBody( tagBody ); if (tag instanceof NamespaceAwareTag) { NamespaceAwareTag naTag = (NamespaceAwareTag) tag; naTag.setNamespaceContext(getNamespaceContext()); } if (tag instanceof LocationAware) { applyLocation((LocationAware) tag); } }
/** * Compiles a newly created tag if required, sets its parent and body. */ protected void configureTag(Tag tag, JellyContext context) throws JellyException { if (tag instanceof CompilableTag) { ((CompilableTag) tag).compile(); } Tag parentTag = null; if ( parent != null ) { parentTag = parent.getTag(context); } tag.setParent( parentTag ); tag.setBody( tagBody ); if (tag instanceof NamespaceAwareTag) { NamespaceAwareTag naTag = (NamespaceAwareTag) tag; naTag.setNamespaceContext(getNamespaceContext()); } if (tag instanceof LocationAware) { applyLocation((LocationAware) tag); } }