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,
spider.event.ISpHtmlOutputListener{
public HrLogOff(){
super();
}
public int init(){
super.init();
//addDisplayListener(this);
addWebListener(this);
addHtmlOutputListener(this);
return(PROCEED);
}
public int onWebEvent(CSpWebEvent event){
int command = PROCEED;
CSpider.removeUserSession();
CSpider.makeNewUserSession(CSpider.getProject());
command = CSpPage.load("pgLogin");
return(command);
}
public int onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
{
setHtmlText("My Href");
return (PROCEED);
}
}
_________________________________________________________________________
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]