commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject cvs commit: jakarta-commons-sandbox/chain/apps/mailreader/src/java/org/apache/commons/chain/mailreader CheckLogonTag.java
Date Thu, 01 Apr 2004 03:39:16 GMT
husted      2004/03/31 19:39:16

  Modified:    chain/apps/mailreader/src/java/org/apache/commons/chain/mailreader
                        CheckLogonTag.java
  Log:
  Correct scope reference
  
  Revision  Changes    Path
  1.2       +6 -6      jakarta-commons-sandbox/chain/apps/mailreader/src/java/org/apache/commons/chain/mailreader/CheckLogonTag.java
  
  Index: CheckLogonTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/chain/apps/mailreader/src/java/org/apache/commons/chain/mailreader/CheckLogonTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CheckLogonTag.java	25 Mar 2004 12:39:27 -0000	1.1
  +++ CheckLogonTag.java	1 Apr 2004 03:39:16 -0000	1.2
  @@ -42,7 +42,7 @@
       /**
        * Path to use if a login is needed.
        */
  -    private static String LOGIN_PATH = "/Logon.do";
  +    private static String LOGIN_PATH = "/LogonForm.do";
   
   
       // ------------------------------------------------------- Public Methods
  @@ -70,7 +70,7 @@
       public int doEndTag() throws JspException {
   
           // Is there a valid user logged on?
  -        boolean valid = (null != pageContext.getServletContext().getAttribute(Constants.USER_KEY));
  +        boolean valid = (null != pageContext.getSession().getAttribute(Constants.USER_KEY));
   
           // Forward control based on the results
           if (valid) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message