public class PhoneTag
extends javax.servlet.jsp.tagext.TagSupport
PhoneNumberUtil.getPhoneHtml(String, String)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
PhoneTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
void |
setNumber(java.lang.String number)
Set the telephone number to be parsed and displayed properly for HTML output
|
void |
setRegion(java.lang.String region)
Set the region that we are expecting the number to be from
|
public static final java.lang.String REVISION
public void setNumber(java.lang.String number)
number
- a telephone numberpublic void setRegion(java.lang.String region)
region
- the ISO 3166-1 two-letter region code that denotes the region that we are expecting
the number to be from. This is only used if the number being parsed is not written in international format.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2001-2017 Jalios SA. All Rights Reserved.