Gets the CounterBean from the specified scope and writes
the value of the counter for the current page to the
JspWriter.
int value = -1;
CounterBean counters = (CounterBean)
pageContext.getAttribute("com.ora.counter", scope);
HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
String uri = req.getRequestURI();
if (counters != null) {
value = counters.getCurrentValue(uri);
}
try {
pageContext.getOut().println(value);
}
catch (IOException e) {} // Ignore it
return EVAL_PAGE;