com.ora.jsp.tags.generic
Class GetLocalNumberTag

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

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

This class implements a custom action that inserts a numeric value, formatted according to the currently selected locale, in the response body. It uses the com.ora.jsp.beans.locale.LocaleBean.

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

Field Summary
private  java.lang.String name
           
private  double value
           
 
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
GetLocalNumberTag()
           
 
Method Summary
 int doEndTag()
          Uses the LocaleBean, available in a scope as a variable specified by the "name" property, to format the value specified by the "value" property.
 void release()
          Releases all instance variables.
 void setName(java.lang.String name)
          Sets the LocaleBean name property.
 void setValue(double value)
          Sets the numeric value property.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, 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

name

private java.lang.String name

value

private double value
Constructor Detail

GetLocalNumberTag

public GetLocalNumberTag()
Method Detail

setName

public void setName(java.lang.String name)
Sets the LocaleBean name property.
Parameters:
name - the name of the LocaleBean

setValue

public void setValue(double value)
Sets the numeric value property.
Parameters:
value - the numeric value

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Uses the LocaleBean, available in a scope as a variable specified by the "name" property, to format the value specified by the "value" property. The result is added to the response body.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

release

public void release()
Releases all instance variables.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport