/** * Removes the given variable in the specified scope. * * @param name is the name of the variable * @param scopeName is the optional scope name such as 'parent'. For servlet environments * this could be 'application', 'session' or 'request'. */ public void removeVariable(String name, String scopeName) { JellyContext scope = getScope(scopeName); if ( scope != null ) { scope.removeVariable(name); } }
/** * Removes the given variable in the specified scope. * * @param name is the name of the variable * @param scopeName is the optional scope name such as 'parent'. For servlet environments * this could be 'application', 'session' or 'request'. */ public void removeVariable(String name, String scopeName) { JellyContext scope = getScope(scopeName); if ( scope != null ) { scope.removeVariable(name); } }
/** * Removes the given variable in the specified scope. * * @param name is the name of the variable * @param scopeName is the optional scope name such as 'parent'. For servlet environments * this could be 'application', 'session' or 'request'. */ public void removeVariable(String name, String scopeName) { JellyContext scope = getScope(scopeName); if ( scope != null ) { scope.removeVariable(name); } }
/** * Removes the given variable in the specified scope. * * @param name is the name of the variable * @param scopeName is the optional scope name such as 'parent'. For servlet environments * this could be 'application', 'session' or 'request'. */ public void removeVariable(String name, String scopeName) { JellyContext scope = getScope(scopeName); if ( scope != null ) { scope.removeVariable(name); } }
/** * Performs processing before the tag's body is evaluated. This * implementation resets the current filter variable. If an event filter tag * is placed in this tag's body, the variable will be set again. * * @throws JellyTagException if an error occurs * @throws FormBuilderException if the tag is incorrectly used */ @Override protected void processBeforeBody() throws JellyTagException, FormBuilderException { getContext().removeVariable(EventFilterTag.CURRENT_FILTER); }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
public void doTag(XMLOutput output) throws MissingAttributeException { if (var != null) { context.removeVariable( var.evaluateAsString(context) ); } else { throw new MissingAttributeException("var"); } }
public void doTag(XMLOutput output) throws JellyTagException { if (var != null) { context.removeVariable(var); } try { invokeBody(output); } catch (Throwable t) { if (var != null) { context.setVariable(var, t); } } }
public void doTag(XMLOutput output) throws JellyTagException { if (var != null) { context.removeVariable(var); } try { invokeBody(output); } catch (Throwable t) { if (var != null) { context.setVariable(var, t); } } }
public void doTag(XMLOutput output) throws JellyTagException { if (var != null) { context.removeVariable(var); } try { invokeBody(output); } catch (Throwable t) { if (var != null) { context.setVariable(var, t); } } }
public void doTag(XMLOutput output) throws JellyTagException { if (var != null) { context.removeVariable(var); } try { invokeBody(output); } catch (Throwable t) { if (var != null) { context.setVariable(var, t); } } }
/** * Stores a component group in the jelly context under a given name. * * @param context the context * @param name the group's name * @param group the group to store (if <b>null </b>, the group will be * removed if it exists) */ public static void storeGroup(JellyContext context, String name, ComponentGroup group) { checkContext(context); if (group == null) { context.removeVariable(GROUP_PREFIX + name); } else { context.setVariable(GROUP_PREFIX + name, group); } }
context.removeVariable(var, scope); context.removeVariable(var);
c.removeVariable("org.apache.commons.jelly.body"); try { script.run(context, output);