com.ora.jsp.tags.counter
Class IncrementCounterTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.ora.jsp.tags.counter.IncrementCounterTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

This class is a custom action for incrementing the value of a page counter for the page where it's included.

Version:
1.0.1
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
private  int scope
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
IncrementCounterTag()
           
 
Method Summary
 int doEndTag()
          Gets the CounterBean from the specified scope, or creates a new one if it doesn't exist, and increments the value of the counter for the current page.
 void setScope(java.lang.String scopeName)
          Sets the scope attribute value.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

scope

private int scope
Constructor Detail

IncrementCounterTag

public IncrementCounterTag()
Method Detail

doEndTag

public int doEndTag()
Gets the CounterBean from the specified scope, or creates a new one if it doesn't exist, and increments the value of the counter for the current page.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

setScope

public void setScope(java.lang.String scopeName)
Sets the scope attribute value.
Parameters:
scopeName - the scope for the counter.