org.apache.commons.jelly.tags.define
Class ScriptTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.define.ScriptTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class ScriptTag
extends org.apache.commons.jelly.TagSupport

<script> tag is used to assign a Script object to a variable. The script can then be called whenever the user wishes maybe from inside an expression or more typically via the <invoke> tag.

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ScriptTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 java.lang.String getVar()
           
 void setVar(java.lang.String var)
          Sets the variable name of the tag to create
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTag

public ScriptTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

getVar

public java.lang.String getVar()
Returns:
the variable name of the script to create

setVar

public void setVar(java.lang.String var)
Sets the variable name of the tag to create



Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.