com.ora.jsp.tags.counter
Class ShowCounterTag

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

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

This class is a custom action for showing the current 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
ShowCounterTag()
           
 
Method Summary
 int doEndTag()
          Gets the CounterBean from the specified scope and writes the value of the counter for the current page to the JspWriter.
 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

ShowCounterTag

public ShowCounterTag()
Method Detail

doEndTag

public int doEndTag()
Gets the CounterBean from the specified scope and writes the value of the counter for the current page to the JspWriter.
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.