| |
|
| java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.webapp.example.CheckLogonTag
CheckLogonTag | final public class CheckLogonTag extends TagSupport (Code) | | Check for a valid User logged on in the current session. If there is no
such user, forward control to the logon page.
author: Craig R. McClanahan author: Marius Barduta version: $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $ |
Method Summary | |
public int | doEndTag() Perform our logged-in user check by looking for the existence of
a session scope bean under the specified name. | public int | doStartTag() Defer our checking until the end of this tag is encountered. | public String | getName() Return the bean name. | public String | getPage() Return the forward page. | public void | release() Release any acquired resources. | public void | setName(String name) Set the bean name. | public void | setPage(String page) Set the forward page. |
doEndTag | public int doEndTag() throws JspException(Code) | | Perform our logged-in user check by looking for the existence of
a session scope bean under the specified name. If this bean is not
present, control is forwarded to the specified logon page.
exception: JspException - if a JSP exception has occurred |
doStartTag | public int doStartTag() throws JspException(Code) | | Defer our checking until the end of this tag is encountered.
exception: JspException - if a JSP exception has occurred |
getPage | public String getPage()(Code) | | Return the forward page.
|
release | public void release()(Code) | | Release any acquired resources.
|
setName | public void setName(String name)(Code) | | Set the bean name.
Parameters: name - The new bean name |
setPage | public void setPage(String page)(Code) | | Set the forward page.
Parameters: page - The new forward page |
|
|
|