head	1.17;
access;
symbols
	TIGRIS_1_1_0RC2:1.12
	TIGRIS_1_1_0RC1:1.12
	TIGRIS_1_1:1.12.0.4
	TIGRIS_1_0_8:1.12
	TIGRIS_1_0_8RC3:1.12
	TIGRIS_1_0_8RC2:1.12
	TIGRIS_1_0_8RC1:1.12
	TIGRIS_1_0_7:1.12
	TIGRIS_1_0_7RC3:1.12
	TIGRIS_1_0_7RC2:1.12
	TIGRIS_1_0_7RC1:1.12
	TIGRIS_1_0_6:1.12
	TIGRIS_1_0_6RC5:1.12
	TIGRIS_1_0_6RC4:1.12
	TIGRIS_1_0_6RC3:1.12
	TIGRIS_1_0_6RC2:1.12
	TIGRIS_1_0_6RC1:1.12
	TIGRIS_1_0_5:1.12
	TIGRIS_1_0_5RC6:1.12
	TIGRIS_1_0_5RC5:1.12
	TIGRIS_1_0_5RC4:1.12
	TIGRIS_1_0_5RC3:1.12
	TIGRIS_1_0_5RC2:1.12
	TIGRIS_1_0_5RC1:1.12
	TIGRIS_1_0_4:1.12
	TIGRIS_1_0_3:1.12
	TIGRIS_1_0_2:1.12
	TIGRIS_1_0_1:1.12
	TIGRIS_1_0:1.12.0.6
	TIGRIS_1_0_0:1.12
	TIGRIS_1_0_0_RC1:1.12.0.2
	TIGRIS_0_9_2_4:1.6
	TIGRIS_0_9_2_3:1.6
	HELM_PEER_PORT_BRANCH:1.8.0.2
	TURBINE_PEER:1.8
	TIGRIS_0_9_2_1:1.8
	TIGRIS_0_9_2:1.6.0.6
	TIGRIS_0_9_0:1.6.0.4
	TIGRIS_0_8_4:1.6.0.2;
locks; strict;
comment	@# @;


1.17
date	2001.08.28.17.45.18;	author leonardr;	state Exp;
branches;
next	1.16;

1.16
date	2001.08.11.09.08.08;	author dlr;	state Exp;
branches;
next	1.15;

1.15
date	2001.07.18.10.13.17;	author dlr;	state Exp;
branches;
next	1.14;

1.14
date	2001.07.18.10.05.15;	author dlr;	state Exp;
branches;
next	1.13;

1.13
date	2001.05.23.01.50.20;	author dlr;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.24.00.54.00;	author leonardr;	state Exp;
branches;
next	1.11;

1.11
date	2001.02.23.23.56.30;	author leonardr;	state Exp;
branches;
next	1.10;

1.10
date	2001.02.21.05.36.24;	author edk;	state Exp;
branches;
next	1.9;

1.9
date	2001.02.21.03.37.42;	author edk;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.26.18.29.08;	author edk;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2001.01.26.05.24.07;	author edk;	state dead;
branches;
next	1.6;

1.6
date	2000.12.04.06.16.16;	author edk;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	2000.12.04.05.48.27;	author edk;	state Exp;
branches;
next	1.4;

1.4
date	2000.11.16.01.40.21;	author stack;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.15.22.48.40;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.15.05.42.39;	author lucas;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.15.03.43.43;	author stack;	state Exp;
branches;
next	;

1.6.4.1
date	2001.01.13.01.49.26;	author stack;	state Exp;
branches;
next	;

1.8.2.1
date	2001.01.28.01.02.19;	author dlr;	state dead;
branches;
next	;


desc
@@


1.17
log
@More methods migrated to ContextAPI.
@
text
@/* ================================================================
 * Copyright (c) 2000-2001 CollabNet.  All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 * 
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * 
 * 3. The end-user documentation included with the redistribution, if
 * any, must include the following acknowlegement: "This product includes
 * software developed by CollabNet (http://www.collab.net/)."
 * Alternately, this acknowlegement may appear in the software itself, if
 * and wherever such third-party acknowlegements normally appear.
 * 
 * 4. The hosted project names must not be used to endorse or promote
 * products derived from this software without prior written
 * permission. For written permission, please contact info@@collab.net.
 * 
 * 5. Products derived from this software may not use the "Tigris" name
 * nor may "Tigris" appear in their names without prior written
 * permission of CollabNet.
 * 
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL COLLABNET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * ====================================================================
 * 
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CollabNet.
 */
package org.tigris.helm.security;

import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

import org.apache.velocity.context.Context;

import org.apache.turbine.util.Log;
import org.apache.commons.util.exception.NestableException;

import org.tigris.helm.security.RedirectException;

import org.tigris.helm.om.*;
import org.tigris.helm.tool.ContextAPI;
import org.tigris.helm.DoesNotExist;

/** 
 * This servlet grants permission to continue upon completion of action.
 * 
 * Used to put in the user's path a compulsory click-through path.  Scenarios
 * would be the required reading of a license or terms-of-use.
 * <p>
 * Subclass to specialize the actions required. 
 * 
 * @@author <a href="mailto:stack@@collab.net">St.Ack</a>
 * @@version $Id: CompulsoryClickThrough.java,v 1.16 2001/08/11 09:08:08 dlr Exp $
 * @@see <a href="http://projects.collab.net/project/eng/stack/projects/clickthroughlicense/index.html">Compulsory Click-through Pages</a>
 */
public class CompulsoryClickThrough 
    extends org.tigris.helm.security.HelmServlet 
{
    /** 
     * State of loggin
     */
    private static final boolean DEBUG = true;
    
    
    /** 
     * Key to pull role string from properties.
     */
    private static final String ROLE_KEY
        = "org.tigris.helm.security.compulsoryclickthrough.role";
        
       
    /** 
     * Submit button action.
     */
    private static final String SUBMIT_ACTION = "Submit";
    
    
    /**
     *  The input radio button consent name.
     */
    private static final String AGREEMENT_INPUT = "agreement";
    
    
    /**
     *  Input value that says they agree.
     */
    private static final String AGREE = "agree";
    
    
    /**
     *  Input value that says user disagrees.
     */
    private static final String DISAGREE = "disagree";
    
   
    /**
     *  Key to pull page to redirect to when user disagrees w/ compulsory
     * click-through.
     */
    private static final String DISAGREE_PAGE_KEY = "disagreePage";
        
        
    /** 
     * Process the required click-through.
     *
     * Copies the workings of UserRoleAdd.
     *
     * @@param connection Connection to use.
     * @@param context WebMacro context.
     * 
     * @@exception HandlerException 
     * @@exception RedirectException
     * 
     * @@see org.tigris.helm.domain.UserRoleAdd
     */
    protected String processRequest(Context context)
        throws NestableException, RedirectException
    {
        String templateName = super.processRequest(context);
        String action = getAction(context);
        
        try
        {
            if(haveValue(action) && action.equals(SUBMIT_ACTION))
            {
                String field = ContextAPI.getParameter
                    (context, AGREEMENT_INPUT); 
                if(haveValue(field) && field.equals(AGREE))
                {
                    Domain domain = getCurrentDomain(context);
                    if(domain == null)
                        throw new NestableException("Domain is null");
                    User user = getLoginUser(context);
                    if(user == null)
                        throw new NestableException("Logged in user is null");
                    user.setClickThroughAsViewed(domain);

                    // Redirect to cancel at the very least will take us to 
                    // the StartPage, which is what we want in most instances. 
                    //
                    redirectToDetour(context); 
                }
                else if(haveValue(field) && field.equals(DISAGREE))
                {                            
                    redirectToHomePage(context) ;
                }
            }
        }
        catch (RedirectException e) 
        {
            throw e;
        } 
        catch (Exception e)
        {
            Log.error(e);
            throw new NestableException(e);
        }

        return templateName;
    }
    
 
    /** 
     * Servlet info method.
     * @@return String name of this servlet.
     */
    public String getServletInfo()
    {
        return "Compulsory Click-through: $Revision: 1.16 $";
    }
}
@


1.16
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@a57 1
import org.apache.commons.util.exception.NestableException;
d62 1
d74 1
a74 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.15 2001/07/18 10:13:17 dlr Exp $
d147 2
a148 1
                String field = getParameter(context, AGREEMENT_INPUT); 
d190 1
a190 1
        return "Compulsory Click-through: $Revision: 1.15 $";
@


1.15
log
@clean up
@
text
@d57 2
a58 2
import org.apache.turbine.util.TurbineException;
import org.apache.turbine.util.TurbineException;
d74 1
a74 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.14 2001/07/18 10:05:15 dlr Exp $
d138 1
a138 1
        throws TurbineException, RedirectException
d152 1
a152 1
                        throw new TurbineException("Domain is null");
d155 1
a155 1
                        throw new TurbineException("Logged in user is null");
d176 1
a176 1
            throw new TurbineException(e);
d189 1
a189 1
        return "Compulsory Click-through: $Revision: 1.14 $";
@


1.14
log
@Ported Joist Redirect*Exception to Helm.
@
text
@d74 1
a74 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.13 2001/05/23 01:50:20 dlr Exp $
a80 6
     * Class version string
     */
    public static final String versionID 
        = "$Id: CompulsoryClickThrough.java,v 1.13 2001/05/23 01:50:20 dlr Exp $";
                  
    /** 
d189 1
a189 1
        return "Compulsory Click-through: $Revision: 1.13 $";
@


1.13
log
@Ported Helm from WebMacro to Velocity.
@
text
@d60 1
a60 1
import org.joist.security.RedirectException;
d74 1
a74 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.12 2001/02/24 00:54:00 leonardr Exp $
d84 1
a84 1
        = "$Id: CompulsoryClickThrough.java,v 1.12 2001/02/24 00:54:00 leonardr Exp $";
d195 1
a195 1
        return "Compulsory Click-through: $Revision: 1.12 $";
@


1.12
log
@Implemented the catch-and-release policy as regards RedirectExceptions.
@
text
@d54 1
a54 1
import org.webmacro.servlet.*;
d57 2
d74 1
a74 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.11 2001/02/23 23:56:30 leonardr Exp $
d84 1
a84 1
        = "$Id: CompulsoryClickThrough.java,v 1.11 2001/02/23 23:56:30 leonardr Exp $";
d143 2
a144 2
    protected String processRequest(Connection connection, WebContext context)
        throws HandlerException, RedirectException
d146 1
a146 1
        String templateName = super.processRequest(connection, context);
d153 1
a153 1
                String field = context.getForm(AGREEMENT_INPUT); 
d158 1
a158 1
                        throw new HandlerException("Domain is null");
d161 1
a161 1
                        throw new HandlerException("getLoginUser is null");
d182 1
a182 1
            throw new HandlerException(e.getMessage());
d195 1
a195 1
        return "Compulsory Click-through: $Revision: 1.11 $";
@


1.11
log
@Time for another exciting episode of "Port That Servlet!"
@
text
@d72 1
a72 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.10 2001/02/21 05:36:24 edk Exp $
d82 1
a82 1
        = "$Id: CompulsoryClickThrough.java,v 1.10 2001/02/21 05:36:24 edk Exp $";
d173 5
a177 1
        catch (Exception e) 
d193 1
a193 1
        return "Compulsory Click-through: $Revision: 1.10 $";
@


1.10
log
@fix imports, exceptions, and use turbine logging
@
text
@d2 1
a2 1
 * Copyright (c) 2000 CollabNet.  All rights reserved.
d17 1
a17 1
 * software developed by Collab.Net (http://www.Collab.Net/)."
d27 1
a27 1
 * permission of Collab.Net.
d32 1
a32 1
 * IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
a57 3
import org.joist.*;
import org.joist.util.*;
import org.joist.session.*;
d60 1
a60 3
import org.tigris.helm.om.Project;
import org.tigris.helm.om.Domain;
import org.tigris.helm.om.User;
a61 1
import org.tigris.helm.security.*;
d63 2
a64 1
/** This servlet grants permission to continue upon completion of action.
d72 1
a72 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.9 2001/02/21 03:37:42 edk Exp $
d78 2
a79 1
    /** Class version string
d82 5
a86 5
        = "$Id: CompulsoryClickThrough.java,v 1.9 2001/02/21 03:37:42 edk Exp $";
        
           
    /** State of loggin
    */
d90 2
a91 1
    /** Key to pull role string from properties.
d97 2
a98 1
    /** Submit button action.
d103 2
a104 1
    /** The input radio button consent name.
d109 2
a110 1
    /** Input value that says they agree.
d115 2
a116 1
    /** Input value that says user disagrees.
d121 2
a122 1
    /** Key to pull page to redirect to when user disagrees w/ compulsory
d128 2
a129 1
    /** Process the required click-through.
d141 1
a141 1
    protected String processRequest( Connection connection, WebContext context )
d144 2
a145 7
        if( DEBUG ) 
            Log.info( "Started!" );

        String templateName = super.processRequest( connection, context );
        String action = getAction( context );
        if( DEBUG )
            Log.info( "Action: " + action );
d149 1
a149 2
            if( haveValue( action )
                && action.equals( SUBMIT_ACTION ) )
d151 2
a152 4
                String field = context.getForm( AGREEMENT_INPUT ); 
                if (DEBUG)
                    Log.debug( "FIELD: " + field );
                if( haveValue( field ) && field.equals( AGREE ) )
d154 8
a161 14
                    Domain domain = getCurrentDomain( context );
                    if( domain == null )
                        throw new HandlerException( "Domain is null" );
                    User user = getLoginUser( context );
                    if( user == null )
                        throw new HandlerException( "getLoginUser is null" );
                    user.setClickThroughAsViewed( domain );
                    // This is no longer necessary
                    //
                    // Put the new ACL in the context; we're not doing an
                    // external redirect, so it won't happen automatically.
                    // SessionManager sMgr = getSessionManager(context);
                    // String loginUserID = sMgr.getUserID();
                    // getACL(context, connection, loginUserID);                    
d165 1
a165 1
                    redirectToDetour( context ); 
d167 1
a167 1
                else if( haveValue( field ) && field.equals( DISAGREE ) )
d169 1
a169 3
                    if( DEBUG )
                        Log.debug( "Calling redirectToHomePage" );
                    redirectToHomePage( context ) ;
a178 6
        finally
        {                 
            if( DEBUG )
                Log.debug( "done" );
        }

d183 2
a184 1
     /** Servlet info method.
d187 1
a187 1
    public String getServletInfo( )
d189 1
a189 1
        return "Compulsory Click-through: $Revision: 1.9 $";
@


1.9
log
@imports and catch statements which match the peer port
@
text
@a53 1
import org.webmacro.util.Log;
d56 1
a56 1
import com.workingdogs.village.*;
a61 1
import org.joist.database.JoistDatabaseException;
a67 1
import org.tigris.helm.database.*;
d77 1
a77 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.8 2001/01/26 18:29:08 edk Exp $
d86 1
a86 1
        = "$Id: CompulsoryClickThrough.java,v 1.8 2001/01/26 18:29:08 edk Exp $";
a88 5
    /** WebMacro log object.
     */
    private static Log log = new Log( "ClkThru", "Required Click Through" );
    
    
d91 1
a91 1
    private static boolean debug = true;
d141 2
a142 2
        if( debug ) 
            log.info( "Started!" );
d146 2
a147 2
        if( debug )
            log.info( "Action: " + action );
d155 2
a156 1
                log.info( "FIELD: " + field );
d180 2
a181 2
                    if( debug )
                        log.debug( "Calling redirectToHomePage" );
d188 1
a188 1
            log.exception(e);
d194 2
a195 2
            if( debug )
                log.debug( "done" );
d207 1
a207 1
        return "Compulsory Click-through: $Revision: 1.8 $";
@


1.8
log
@readding all the files as part of the process of returning to the way
things were as of tuesday
@
text
@d65 3
a70 3
import org.tigris.helm.project.Project;
import org.tigris.helm.domain.Domain;
import org.tigris.helm.domain.User;
d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.6 2000/12/04 06:16:16 edk Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.6 2000/12/04 06:16:16 edk Exp $";
d193 1
a193 17
        
        catch (DataSetException e) 
        {
            log.exception(e);
            throw new HandlerException(e.getMessage());
        } 
        catch (SQLException e) 
        {
            log.exception(e);
            throw new HandlerException(e.getMessage());
        } 
        catch (JoistDatabaseException e) 
        {
            log.exception(e);
            throw new HandlerException(e.getMessage());
        } 
        catch (DoesNotExist e) 
d214 1
a214 1
        return "Compulsory Click-through: $Revision: 1.6 $";
@


1.8.2.1
log
@Porting to the Turbine Peer system.  -dlr and leonardr
@
text
@d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.8 2001/01/26 18:29:08 edk Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.8 2001/01/26 18:29:08 edk Exp $";
d230 1
a230 1
        return "Compulsory Click-through: $Revision: 1.8 $";
@


1.7
log
@revert this stuff to its state as of 2001/01/24 12:42:00 GMT -- with
the following exceptions, which have some different modifications so
they'll work with changes which have happened in joist:

ProjectNewsEdit.java
SkinManager.java
SkinStyleElementValueManager.java
StyleElementManager.java
StyleManager.java

it compiles.  i dunno if it works, though.
@
text
@@


1.6
log
@* make compulsory click through compulsory -- it should be applied on
  any page which has any base permission checking
* make the redirect be to the home page -- generally this sends the
  visitor to /, which is reasonable
@
text
@d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.5 2000/12/04 05:48:27 edk Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.5 2000/12/04 05:48:27 edk Exp $";
d230 1
a230 1
        return "Compulsory Click-through: $Revision: 1.5 $";
@


1.6.4.1
log
@Allow override of where CCT goes next
@
text
@d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.6 2000/12/04 06:16:16 edk Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.6 2000/12/04 06:16:16 edk Exp $";
d230 1
a230 41
        return "Compulsory Click-through: $Revision: 1.6 $";
    }


    /**
     * Redirect to the detoured page.
     * 
     * Override.  I want first crack at where to redirect to for the 
     * case where INSTANTIATIONS want to go other than home page.
     *
     * @@param   context    the WebContext partially populated by WMServlet
     * @@exception   HandlerException
     * @@exception   RedirectException
     */
    protected void redirectToDetour( WebContext context )
        throws HandlerException, RedirectException
    {
        String overrideNextPage 
            = myProperties.getProperty( "overrideNextPage" );

        if( overrideNextPage != null && overrideNextPage.length( ) > 0 )
        {
            if( debug )
                log.info( "Redirecting to overrideNextPage:" 
                + overrideNextPage );

            try
            {
                context.getResponse( ).sendRedirect( overrideNextPage );
            }

            catch( java.io.IOException exception )
            {
                if( debug )
                    log.info( "overrideNextPage redirect failed:"
                    +  exception.toString( ) );
                // Fall out of this catch and drop into super method
            }
        }
        
        super.redirectToDetour( context );
@


1.5
log
@kill tabs
@
text
@d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.4 2000/11/16 01:40:21 stack Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.4 2000/11/16 01:40:21 stack Exp $";
d188 2
a189 2
                        log.debug( "Calling redirectToUnauthorized" );
                    redirectToUnauthorized( ) ;
d230 1
a230 1
        return "Compulsory Click-through: $Revision: 1.4 $";
@


1.4
log
@It is working
@
text
@d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.3 2000/11/15 22:48:40 leonardr Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.3 2000/11/15 22:48:40 leonardr Exp $";
d147 1
a147 1
	    throws HandlerException, RedirectException
d187 3
a189 3
 					if( debug )
						log.debug( "Calling redirectToUnauthorized" );
					redirectToUnauthorized( ) ;
d230 1
a230 1
        return "Compulsory Click-through: $Revision: 1.3 $";
@


1.3
log
@Got rid of more superfluous UpdateException throwage.
@
text
@d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.2 2000/11/15 05:42:39 lucas Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.2 2000/11/15 05:42:39 lucas Exp $";
d153 1
a153 1
        String action = ( String )context.get( "action" );
d159 1
a159 1
            if( haveValue( action ) 
d163 1
d169 1
a169 1
                    User user = getCurrentUser( context );
d171 1
a171 1
                        throw new HandlerException( "getCurrentUser is null" );
d173 7
a179 1
                    
d183 1
a183 1
                    redirectToCancel( context ); 
d186 1
a186 3
                {
                    String disagreePage 
                        = myProperties.getProperty( DISAGREE_PAGE_KEY );                             
d188 2
a189 3
						log.debug( "ProjectEdit done -- redirecting to: " 
									+ disagreePage );
					redirectToURL( context, disagreePage  );  
d230 1
a230 1
        return "Compulsory Click-through: $Revision: 1.2 $";
@


1.2
log
@Fixed a couple of syntax errors as well as a variable which wasn't being set anywhere in the class.

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a71 3
import org.tigris.helm.tool.UpdateException;


d80 1
a80 1
 * @@version $Id: CompulsoryClickThrough.java,v 1.1 2000/11/15 03:43:43 stack Exp $
d89 1
a89 1
        = "$Id: CompulsoryClickThrough.java,v 1.1 2000/11/15 03:43:43 stack Exp $";
a204 5
        catch (UpdateException e) 
        {
            log.exception(e);
            throw new HandlerException(e.getMessage());
        } 
d226 1
a226 1
        return "Compulsory Click-through: $Revision: 1.1 $";
@


1.1
log
@This servlet handles compulsory click-through.  Grants access if user completes compulsory click-through.  Compulsory click-through can be added/subtracted willy-nilly
@
text
@d83 1
a83 1
 * @@version $Id: Search.java,v 1.1.1.1 2000/11/12 21:16:30 dlr Exp $
d92 1
a92 1
        = "$Id: Search.java,v 1.1.1.1 2000/11/12 21:16:30 dlr Exp $";
d127 1
a127 1
     */.
d165 1
a165 1
                String field = context.getForm( AGREEMENT_INPUT ) );
d187 1
a187 1
									+ projectHome );
d234 1
a234 1
        return "Compulsory Click-through: $Revision$";
@

