public class AddressTag
extends javax.servlet.jsp.tagext.TagSupport
<rhn:address type=MAILING>
This outputs a table row tag containing a Header column, address info and a link to edit the address.
Mailing: 444 Castro
Mountain View, CA 94043
Phone: 650-555-1212
Fax: 650-555-1212
Edit This Address (this is a link)
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_MY
defines the action the address tag should forward to
|
static java.lang.String |
ACTION_USER
public string representing the forward action type
|
| Constructor and Description |
|---|
AddressTag()
Constructor for Address tag.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag() |
java.lang.String |
getAction()
Returns the action used to determine where to forward the call too.
|
Address |
getAddress()
Get the Address to be rendered
|
java.lang.String |
getType()
Get the type of this address: MAILING, BILLING, SHIPPING
|
User |
getUser()
Get the User associated with this Address
|
void |
release() |
void |
setAction(java.lang.String actionIn)
Sets the action used to determine where to forward the call too.
|
void |
setAddress(Address addrIn)
Set the Address to be rendered
|
void |
setType(java.lang.String typeIn)
Set the type of this address: MAILING, BILLING, SHIPPING
|
void |
setUser(User userIn)
Set the User associated with this Address
|
public static final java.lang.String ACTION_MY
public static final java.lang.String ACTION_USER
public void setType(java.lang.String typeIn)
typeIn - the type of this address: MAILING, BILLING, SHIPPINGpublic java.lang.String getType()
public void setUser(User userIn)
userIn - the Userpublic User getUser()
public void setAddress(Address addrIn)
addrIn - the Address to renderpublic Address getAddress()
public void setAction(java.lang.String actionIn)
actionIn - the action used to determine where to forward the
call too.public java.lang.String getAction()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - jsp exceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupport