jodd.servlet.tags.basic
Class GetPropertyTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjodd.servlet.tags.basic.GetPropertyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class GetPropertyTag
extends javax.servlet.jsp.tagext.TagSupport

Reads property from an java bean object stored in specified scope. Bean object is retrieved by name and then property value is read from it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
GetPropertyTag()
           
 
Method Summary
 int doStartTag()
           
protected  java.lang.String getBean()
          Returns bean name.
protected  java.lang.Object getBeanObject()
          Get the bean object from the required scope.
protected  java.lang.String getName()
          Returns bean parameter name.
 void setBean(java.lang.String v)
          Sets the bean name.
 void setName(java.lang.String v)
          Sets the property name.
 void setScope(java.lang.String v)
          Sets the bean scope.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetPropertyTag

public GetPropertyTag()
Method Detail

setBean

public void setBean(java.lang.String v)
Sets the bean name.

Parameters:
v -

getBean

protected java.lang.String getBean()
Returns bean name.

Returns:
bean name

setName

public void setName(java.lang.String v)
Sets the property name.

Parameters:
v -

getName

protected java.lang.String getName()
Returns bean parameter name.

Returns:
bean parameter name

setScope

public void setScope(java.lang.String v)
Sets the bean scope. May be one of the following:
request
session
page (i.e. pageScope, which is also default scope)

Parameters:
v -

getBeanObject

protected java.lang.Object getBeanObject()
Get the bean object from the required scope.

Returns:
bean object

doStartTag

public int doStartTag()


Jodd v0.24.5 Javadoc