org.kohsuke.stapler.jelly
Class IncludeTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.kohsuke.stapler.jelly.IncludeTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

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

Tag that includes views of the object.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent
 
Constructor Summary
IncludeTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 void setClass(java.lang.Class clazz)
          When loading script, load from this class.
 void setFrom(java.lang.Object from)
          When loading the script, use the classloader from this object to locate the script.
 void setIt(java.lang.Object it)
          Specifies the object for which JSP will be included.
 void setOptional(boolean optional)
          If true, not finding the page is not an error.
 void setPage(java.lang.String page)
          Specifies the name of the JSP to be included.
 
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

IncludeTag

public IncludeTag()
Method Detail

setPage

@Required
public void setPage(java.lang.String page)
Specifies the name of the JSP to be included.


setIt

public void setIt(java.lang.Object it)
Specifies the object for which JSP will be included. Defaults to the "it" object in the current context.


setFrom

public void setFrom(java.lang.Object from)
When loading the script, use the classloader from this object to locate the script. Otherwise defaults to "it" object.


setClass

public void setClass(java.lang.Class clazz)
When loading script, load from this class. By default this is "from.getClass()". This takes precedence over the setFrom(Object) method.


setOptional

public void setOptional(boolean optional)
If true, not finding the page is not an error. (And in such a case, the body of the include tag is evaluated instead.)


doTag

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


Copyright © 2011. All Rights Reserved.