Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lilacsoftware.orca
Class CheckLogonTag  view CheckLogonTag download CheckLogonTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.lilacsoftware.orca.CheckLogonTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public final class CheckLogonTag
extends javax.servlet.jsp.tagext.TagSupport

Check for a valid User logged on in the current session. If there is no such user, forward control to the logon page.

Version:
$Revision: 1.1.1.1 $ $Date: 2001/11/05 17:41:46 $

Field Summary
private  java.lang.String name
          The key of the session-scope bean we look for.
private  java.lang.String page
          The page to which we should forward for the user to log on.
 
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
 

Field Detail

name

private java.lang.String name
The key of the session-scope bean we look for.


page

private java.lang.String page
The page to which we should forward for the user to log on.

Constructor Detail

CheckLogonTag

public CheckLogonTag()
Method Detail

getName

public java.lang.String getName()
Return the bean name.


setName

public void setName(java.lang.String name)
Set the bean name.


getPage

public java.lang.String getPage()
Return the forward page.


setPage

public void setPage(java.lang.String page)
Set the forward page.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Defer our checking until the end of this tag is encountered.


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
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.


release

public void release()
Release any acquired resources.