se.kmr.scam.web.taglib.common
Class BaseEntityTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
se.kmr.scam.web.taglib.common.BodyTagSupport
se.kmr.scam.web.taglib.common.BaseEntityTag
- All Implemented Interfaces:
- BodyTag, IterationTag, Serializable, Tag
- Direct Known Subclasses:
- SubjectTag, VCardTag
- public abstract class BaseEntityTag
- extends BodyTagSupport
Provides access to an (abstract) entity. Implementing classes
provides access to different entities.
Following attributes must be defined, in the TLD, by implementing tags:
- Version:
- $Revision: 1.7 $
- Author:
- Jöran
- See Also:
- Serialized Form
- Created:
- den 22 april 2003
Method Summary |
int |
doAfterBoy()
Recives notification for after body evaluation |
int |
doStartTag()
Recives notification of the start of a tag.
|
abstract Resource |
getEntity()
Gets the resource representing the entity |
Methods inherited from class se.kmr.scam.web.taglib.common.BodyTagSupport |
escape, exposeObject, exposeTag, getSubjectAsResource, getVar, printObject, release, removeObject, removeTag, setSubject, setVar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseEntityTag
public BaseEntityTag()
getEntity
public abstract Resource getEntity()
throws JspException
- Gets the
resource
representing the entity
- Returns:
- The entity
- Throws:
JspException
- in case of exception extracting the entity
doStartTag
public int doStartTag()
throws JspException
- Recives notification of the start of a tag.
Value(s) of the tag is written to the page if a delimiter is defined.
If a variable is defined, then each value is exposed in that variable
in each iteration.
- Returns:
- the value of EVAL_BODY_INCLUDE.
- Throws:
JspException
- thrown in case of exception writing to the page
or extracting property value.
doAfterBoy
public int doAfterBoy()
- Recives notification for after body evaluation
- Returns:
- the valur of EVAL_PAGE.
Copyright © 2003 SCAM. All Rights Reserved.