The code was fine, the mistake I was doing was not mentioning the superclass name in 
'package.class' format, I was only providing the class name. Thanks to Grace who 
pointed it out.

Vishal

"Vishal Gautam" <[EMAIL PROTECTED]> wrote:
>
>Hi Everybody,
>
>I am trying to subclass CSpHref to implement some simple functionality 
>but it does'nt seem to work, I created a user module whose code 
>is attached below, added a custom href to a page and changed its 
>superclass property to my class, when I run the page the href simply 
>does'nt show up. If somebody's Object Oriented eyes could catch 
>the problem, I will be helped....
>TIA
>
>Vishal
>------------------------------
>package ICS1_3;
>
>import java.awt.event.*;
>import spider.event.*;
>import spider.session.*;
>import spider.util.*;
>import spider.visual.*;
>import spider.*;
>
>
>public class HrLogOff extends spider.visual.CSpHref
>                               implements spider.event.ISpWebEventListener{
>                               
>       public HrLogOff(){
>               super();
>       }
>
>       public int init(){
>               super.init();
>               //addDisplayListener(this);
>               addWebListener(this);
>               return(PROCEED);
>       }
>
>       
>       public int onWebEvent(CSpWebEvent event){
>               int command = PROCEED;
>               CSpider.removeUserSession();
>               CSpider.makeNewUserSession(CSpider.getProject());
>               command = CSpPage.load("pgLogin");
>               return(command);
>       }
>}                              

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to