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

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

public class InvokeTag
extends javax.servlet.jsp.tagext.TagSupport

INTERNAL: Custom tag that invokes an action when the form is submitted.

See Also:
Serialized Form

Field Summary
protected  String action_name
           
protected  String params
           
protected  String readonly
           
protected  String run_if_no_changes
           
protected static String TEMPLATE_FILE
          The location where the velocity template can be retrieved from.
protected  String value_var
           
 
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
InvokeTag()
           
 
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 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 setRunIfNoChanges(String runIfNoChanges)
          Controls whether the action should run if no other action has been run.
 void setValue(String value_var)
          Sets the name of the variable used to set the value of the field.
 
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
 

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

action_name

protected String action_name

params

protected String params

value_var

protected String value_var

run_if_no_changes

protected String run_if_no_changes
Constructor Detail

InvokeTag

public InvokeTag()
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.TagSupport

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.TagSupport
Throws:
javax.servlet.jsp.JspException

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.TagSupport

setReadonly

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


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).


setValue

public void setValue(String value_var)
Sets the name of the variable used to set the value of the field.


setRunIfNoChanges

public void setRunIfNoChanges(String runIfNoChanges)
Controls whether the action should run if no other action has been run. (Useful for last-modified-* type actions.)



Copyright © 2000-2012 Ontopia.