com.mentata.sg8
Class ActionsTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.SimpleTagSupport
      extended bycom.mentata.sg8.ActionsTag
All Implemented Interfaces:
JspTag, SimpleTag

public class ActionsTag
extends SimpleTagSupport

A tag handler for adding links for gateway actions to an identified entry's display. This tag handler is used to produce hyperlinks to various functions appropriate for an entry. It has action attributes for the populated object and for a specific attribute name. The gateway display page uses the tag to add the links at the tail of the output HTML.

Since:
0.7
Author:
Jon Roberts

Constructor Summary
ActionsTag()
           
 
Method Summary
 void doTag()
          Writes a series of links to gateway actions for the configured object and attribute.
 void setAttribute(String attribute)
          Defines an attribute parameter for the tag context.
 void setObject(SG8Object object)
          Defines an object parameter for the tag context.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsTag

public ActionsTag()
Method Detail

setObject

public void setObject(SG8Object object)
Defines an object parameter for the tag context.

Parameters:
object - an SG8 object

setAttribute

public void setAttribute(String attribute)
Defines an attribute parameter for the tag context.

Parameters:
attribute - an attribute name

doTag

public void doTag()
           throws IOException
Writes a series of links to gateway actions for the configured object and attribute.

Throws:
IOException - if there was an error writing to the output stream