java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
net.ontopia.topicmaps.nav2.taglibs.tolog.OutTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

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:
  • Field Details

    • scope

      protected String scope
  • Constructor Details

    • OutTag

      public OutTag()
  • Method Details

    • generateOutput

      public void generateOutput(jakarta.servlet.jsp.JspWriter out, Object outObject) throws jakarta.servlet.jsp.JspTagException, IOException
      Process the start tag for this instance.
      Specified by:
      generateOutput in class BaseOutputProducingTag
      Throws:
      jakarta.servlet.jsp.JspTagException
      IOException
    • taoToString

      public String taoToString(Object tao, jakarta.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 jakarta.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