org.chwf.taglib.ji18n
Class UrlTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.chwf.taglib.base.LifeCycleTagSupport
              |
              +--org.chwf.taglib.ji18n.UrlTag
All Implemented Interfaces:
Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class UrlTag
extends LifeCycleTagSupport

Tag handler for the <url> tag.

Author:
Paul Strack
See Also:
Serialized Form

Field Summary
static java.lang.String COUNTRY
          Value for i18n attribute to localize by country.
static java.lang.String LANGUAGE
          Value for i18n attribute to localize by language.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
UrlTag()
           
 
Method Summary
 void cleanup()
          Clean up data for tag handler reuse and pooling.
 int doEnd()
          Wraps the (trimmed) tag body with the defined element.
 java.lang.String getI18n()
          Whether localize by language or country.
 java.lang.String getValue()
          The url value.
 void setI18n(java.lang.String i18n)
          Whether localize by language or country.
 void setValue(java.lang.String value)
          The url value.
 
Methods inherited from class org.chwf.taglib.base.LifeCycleTagSupport
addAttribute, addParameter, doEndTag, doStart, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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, toString, wait, wait, wait
 

Field Detail

LANGUAGE

public static final java.lang.String LANGUAGE
Value for i18n attribute to localize by language.

COUNTRY

public static final java.lang.String COUNTRY
Value for i18n attribute to localize by country.
Constructor Detail

UrlTag

public UrlTag()
Method Detail

cleanup

public void cleanup()
Clean up data for tag handler reuse and pooling. Should be overridden in tag handler. Subclasses should always invoke their superclass's cleanup method: super.cleanup()
Overrides:
cleanup in class LifeCycleTagSupport

setValue

public void setValue(java.lang.String value)
The url value.
Parameters:
value - The url value.

getValue

public java.lang.String getValue()
The url value.
Returns:
The url value.

setI18n

public void setI18n(java.lang.String i18n)
             throws javax.servlet.jsp.JspException
Whether localize by language or country.
Parameters:
i18n - Whether localize by language or country.
Throws:
javax.servlet.jsp.JspException - If attribute is assigned an illegal value.

getI18n

public java.lang.String getI18n()
Whether localize by language or country.
Returns:
Whether localize by language or country.

doEnd

public int doEnd()
          throws java.io.IOException
Wraps the (trimmed) tag body with the defined element.
Overrides:
doEnd in class LifeCycleTagSupport
Returns:
EVAL_PAGE
Throws:
java.io.IOException - For write errors.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.