com.taggercat.tags
Class PageSequenceTag

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

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

This tag generates an unique page sequence number. The sequence number can be used in request handlers to ensure the user is submitting pages in the intended order.

This is most often used to prevent the same form instance from being submitted multiple times. It can also be used to prevent the user from using the browsers' back button to a previous page and then re-submitting it.

The abstract request handler automatically processes the page sequence value if it is present.

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
PageSequenceTag()
           
 
Method Summary
 int doStartTag()
          Processes the tag, and creates the hidden form element.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

PageSequenceTag

public PageSequenceTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Processes the tag, and creates the hidden form element.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException
Returns:
SKIP_BODY this tag does not have a body