java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.clra.web.MemberTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class MemberTag
- extends javax.servlet.jsp.tagext.TagSupport
MemberTag member, used to get the member who is currently
logged in. This class is a thin wrapper around the MemberView class.
MemberTag Lib Descriptor
<name>memberId</name>
<tagclass>com.clra.web.MemberIdTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Gets a property of an authenticated member.</info>
Most properties are self-explanatory. Name, Address, Telephone and
ID values require special names. The birth date is returned as
"mm/dd/yyyy". If no property is specified, the default is "fullName".
- PN_ACCOUNTNAME == "accountName" == getAccountName()
- PN_STREET1 == "street1" == getAddress().getStreet1()
- PN_STREET2 == "street2" == getAddress().getStreet2()
- PN_CITY == "city" == getAddress().getCity()
- PN_STATE == "state" == getAddress().getState()
- PN_ZIP == "zip" == getAddress().getZip()
- PN_BIRTH == "birthDate" == getBirthDate() [mm/dd/yyyy]
- PN_ACCOUNTTYPESTR == "accountTypeStr" == getAccountTypeStr()
- PN_EMAIL == "email" == getEmail()
- PN_MEMBERID == "memberId" == getId()
- PN_FULLNAME == "fullName" == getMemberName().getName()
- PN_LASTNAME == "lastName" == getMemberName().getLastName()
- PN_FIRSTNAME == "firstName" == getMemberName().getFirstName()
- PN_MIDDLENAME == "middleName" == getMemberName().getMiddleName()
- PN_SUFFIX == "suffix" == getMemberName().getSuffix()
- PN_EVENINGPHONE== "eveningPhone" == [get EVENING telephone]
- PN_DAYPHONE == "dayPhone" == [get DAY telephone]
- PN_OTHERPHONE == "otherPhone" == [get OTHER telephone]
- Version:
- $Id: MemberTag.java,v 1.6 2003/02/26 03:38:46 rphall Exp $
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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, toString, wait, wait, wait |
PN_ACCOUNTNAME
public static final java.lang.String PN_ACCOUNTNAME
- See Also:
- Constant Field Values
PN_STREET1
public static final java.lang.String PN_STREET1
- See Also:
- Constant Field Values
PN_STREET2
public static final java.lang.String PN_STREET2
- See Also:
- Constant Field Values
PN_CITY
public static final java.lang.String PN_CITY
- See Also:
- Constant Field Values
PN_STATE
public static final java.lang.String PN_STATE
- See Also:
- Constant Field Values
PN_ZIP
public static final java.lang.String PN_ZIP
- See Also:
- Constant Field Values
PN_BIRTH
public static final java.lang.String PN_BIRTH
- See Also:
- Constant Field Values
PN_ACCOUNTTYPESTR
public static final java.lang.String PN_ACCOUNTTYPESTR
- See Also:
- Constant Field Values
PN_EMAIL
public static final java.lang.String PN_EMAIL
- See Also:
- Constant Field Values
PN_MEMBERID
public static final java.lang.String PN_MEMBERID
- See Also:
- Constant Field Values
PN_FULLNAME
public static final java.lang.String PN_FULLNAME
- See Also:
- Constant Field Values
PN_LASTNAME
public static final java.lang.String PN_LASTNAME
- See Also:
- Constant Field Values
PN_FIRSTNAME
public static final java.lang.String PN_FIRSTNAME
- See Also:
- Constant Field Values
PN_MIDDLENAME
public static final java.lang.String PN_MIDDLENAME
- See Also:
- Constant Field Values
PN_SUFFIX
public static final java.lang.String PN_SUFFIX
- See Also:
- Constant Field Values
PN_EVENINGPHONE
public static final java.lang.String PN_EVENINGPHONE
- See Also:
- Constant Field Values
PN_DAYPHONE
public static final java.lang.String PN_DAYPHONE
- See Also:
- Constant Field Values
PN_OTHERPHONE
public static final java.lang.String PN_OTHERPHONE
- See Also:
- Constant Field Values
_key
private java.lang.String _key
_property
private java.lang.String _property
_member
private MemberView _member
MemberTag
public MemberTag()
getMemberFromKey
public static MemberView getMemberFromKey(javax.servlet.http.HttpSession session,
java.lang.String key)
throws javax.servlet.jsp.JspException
- Utility that checks for the MEMBER_ID key in the session context
getMemberFromAuthenticatedUser
public static MemberView getMemberFromAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.jsp.JspException
- Utility that gets the authenticated user from the request context
getMemberFromMemberId
public static MemberView getMemberFromMemberId(java.lang.String strMemberId)
throws javax.servlet.jsp.JspException
- Utility that gets a MemberView for the specified memberId.
getMemberFromMemberId
public static MemberView getMemberFromMemberId(java.lang.Integer memberId)
throws javax.servlet.jsp.JspException
- Utility that gets a MemberView for the specified memberId
setMemberInSession
public static void setMemberInSession(javax.servlet.http.HttpSession session,
java.lang.String key,
MemberView member)
throws javax.servlet.jsp.JspException
- Utility that inserts member info in the session context
getKey
public java.lang.String getKey()
setKey
public void setKey()
getProperty
public java.lang.String getProperty()
setProperty
public void setProperty()
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Method called at end of Tag to output member property
release
public void release()
- Release any acquired resources.