Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sitemesh.taglib.decorator
Class PropertyTag  view PropertyTag download PropertyTag.java

java.lang.Object
  extended bycom.sitemesh.taglib.AbstractTag
      extended bycom.sitemesh.taglib.decorator.PropertyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, com.sitemesh.RequestConstants, javax.servlet.jsp.tagext.Tag

public class PropertyTag
extends com.sitemesh.taglib.AbstractTag

Write property of Page to out.

Version:
$Revision: 1.2 $

Field Summary
private  java.lang.String defaultValue
           
private  java.lang.String propertyName
           
 
Fields inherited from class com.sitemesh.taglib.AbstractTag
pageContext, parent
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Fields inherited from interface com.sitemesh.RequestConstants
DECORATOR, FILTER_APPLIED, PAGE
 
Constructor Summary
PropertyTag()
           
 
Method Summary
 int doEndTag()
          To be implemented by all empty tags.
 void release()
          Called on a Tag handler to release state.
 void setDefault(java.lang.String defaultValue)
          Value to write if no property matching key is found (optional).
 void setProperty(java.lang.String propertyName)
          Key of property to write.
 
Methods inherited from class com.sitemesh.taglib.AbstractTag
doStartTag, getPage, getParent, setPageContext, setParent, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyName

private java.lang.String propertyName

defaultValue

private java.lang.String defaultValue
Constructor Detail

PropertyTag

public PropertyTag()
Method Detail

setProperty

public void setProperty(java.lang.String propertyName)
Key of property to write.


setDefault

public void setDefault(java.lang.String defaultValue)
Value to write if no property matching key is found (optional).


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Description copied from class: com.sitemesh.taglib.AbstractTag
To be implemented by all empty tags.


release

public void release()
Description copied from interface: javax.servlet.jsp.tagext.Tag
Called on a Tag handler to release state. The page compiler guarantees that JSP page implementation objects will invoke this method on all tag handlers, but there may be multiple invocations on doStartTag and doEndTag in between.