net.ontopia.topicmaps.webed.taglibs.form
Class LinkTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by net.ontopia.topicmaps.webed.taglibs.form.LinkTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class LinkTag
extends javax.servlet.jsp.tagext.BodyTagSupport

INTERNAL: A link tag that when clicked submits the form that it's in and goes to the href given by the href attribute.

See Also:
Serialized Form

Field Summary
protected  String action_name
           
protected  String href
           
protected  String klass
           
protected  String params
           
protected  String readonly
           
protected  String target
           
protected static String TEMPLATE_FILE
          The location where the velocity template can be retrieved from.
protected  String title
           
protected  String type
           
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
LinkTag()
           
 
Method Summary
 int doEndTag()
          Generate the required input tag.
 int doStartTag()
          Process the start tag, do nothing.
 void release()
          Release any acquired resources.
 void setAction(String action_name)
          Sets the name of the related action (required).
 void setClass(String klass)
          Sets the class attribute of the tag.
 void setHref(String href)
          Sets the url that the link should point to.
 void setId(String id)
          Sets the id of the tag.
 void setParams(String params)
          Sets the variable name(s) of the parameter(s) transmitted to the action separated by whitespaces (optional).
 void setReadonly(String readonly)
          Sets the the readonly flag of the tag.
 void setTarget(String target)
          Sets the target frame that the link should be opened in.
 void setTitle(String href)
          Sets the title to be used to display the link.
 void setType(String type)
          Sets the link type (submit|submitnoreload|nosubmit).
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

TEMPLATE_FILE

protected static final String TEMPLATE_FILE
The location where the velocity template can be retrieved from.

See Also:
Constant Field Values

readonly

protected String readonly

klass

protected String klass

action_name

protected String action_name

params

protected String params

href

protected String href

target

protected String target

title

protected String title

type

protected String type
Constructor Detail

LinkTag

public LinkTag()
Method Detail

doStartTag

public int doStartTag()
Process the start tag, do nothing.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_BODY_INCLUDE

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Generate the required input tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport

setId

public void setId(String id)
Sets the id of the tag. This value will be used as the value of an ID attribute in the generated output.

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

setReadonly

public void setReadonly(String readonly)
Sets the the readonly flag of the tag.


setClass

public void setClass(String klass)
Sets the class attribute of the tag. This value will be used as the value of the 'class' attribute in the generated output.


setAction

public void setAction(String action_name)
Sets the name of the related action (required).


setParams

public void setParams(String params)
Sets the variable name(s) of the parameter(s) transmitted to the action separated by whitespaces (optional).


setHref

public void setHref(String href)
Sets the url that the link should point to.


setTarget

public void setTarget(String target)
Sets the target frame that the link should be opened in.


setTitle

public void setTitle(String href)
Sets the title to be used to display the link.


setType

public void setType(String type)
Sets the link type (submit|submitnoreload|nosubmit).



Copyright © 2000-2012 Ontopia.