|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.webapp.example.CheckLogonTag
public final class CheckLogonTag
Check for a valid User logged on in the current session. If there is no such user, forward control to the logon page.
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
CheckLogonTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Perform our logged-in user check by looking for the existence of a session scope bean under the specified name. |
int |
doStartTag()
Defer our checking until the end of this tag is encountered. |
java.lang.String |
getName()
Return the bean name. |
java.lang.String |
getPage()
Return the forward page. |
void |
release()
Release any acquired resources. |
void |
setName(java.lang.String name)
Set the bean name. |
void |
setPage(java.lang.String page)
Set the forward page. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, 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 |
| Constructor Detail |
|---|
public CheckLogonTag()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The new bean namepublic java.lang.String getPage()
public void setPage(java.lang.String page)
page - The new forward page
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 - if a JSP exception has occurred
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||