com.taggercat.tags
Class ControllerServletTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.ControllerServletTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

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

This tag prints the path of the controller servlet. The path includes the context path. It is typically used to set the form's action attribute.

Example: <form action='<tc:controllerServlet />' name="form1" method="post" > The tag will include the jsessionid when needed. Additionally, it can include the query string from the current request.

See Also:
Serialized Form
 

Field Summary
 
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
ControllerServletTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Process the start tag for this instance.
 java.lang.String getName()
           
 boolean isIncludeQueryString()
           
 void setIncludeQueryString(boolean includeQueryString)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerServletTag

public ControllerServletTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag for this instance. The doStartTag() method assumes that all setter methods have been invoked before. When this method is invoked, the body has not yet been invoked.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspException
Returns:
EVAL_BODY_INCLUDE if the tag wants to process body, SKIP_BODY if it does not want to process it.

isIncludeQueryString

public boolean isIncludeQueryString()

setIncludeQueryString

public void setIncludeQueryString(boolean includeQueryString)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)