net.ontopia.topicmaps.nav2.taglibs.tolog
Class OutTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
net.ontopia.topicmaps.nav2.taglibs.tolog.OutTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class OutTag
- extends BaseOutputProducingTag
INTERNAL: Tolog Tag for outputting content. Outputs the content of
a variable (attribute 'var' or the result of a query (attribute
'query') If the variable is a collection or the query gives
multiple columns, then the first element/row is output. It is an
error for the query to produce multiple column (undeterministic).
- See Also:
- Serialized Form
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 |
OutTag()
Default constructor. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scope
protected String scope
OutTag
public OutTag()
- Default constructor.
generateOutput
public void generateOutput(javax.servlet.jsp.JspWriter out,
Object outObject)
throws javax.servlet.jsp.JspTagException,
IOException
- Process the start tag for this instance.
- Specified by:
generateOutput
in class BaseOutputProducingTag
- Throws:
javax.servlet.jsp.JspTagException
IOException
taoToString
public String taoToString(Object tao,
javax.servlet.ServletRequest request,
String scope)
throws NavigatorRuntimeException
- Converts a topic map object to a suitable String representation.
- Parameters:
tao
- The Object to convert.request
- To be used for stringification.scope
- Used to select appropriate string for topics.
- Returns:
- A suitable string representation for tao.
- Throws:
NavigatorRuntimeException
release
public void release()
- Resets the state of the Tag.
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class BaseOutputProducingTag
setScope
public void setScope(String scope)
setEscape
public void setEscape(String escape)
- Since:
- 3.0
getName
public String getName()
- Specified by:
getName
in class BaseOutputProducingTag
Copyright © 2000-2012 Ontopia.