I have a class object passed between Applet on Apache web server and servelt on Tomcat. The applet first passes this object with some parameters to servlet, then servlet passes back the object with changed parameters. I check with Tomcate, this class seems should be in /common/shared/classes.
But how can applet know this class is here? Shall I include /common/shares/ in the CLASSPATH?
How applet and servlet import this class?
public class dataTransfer extends Object implements java.io.Serializable{
public int dyear,dmonth;
public dataTransfer(){
setTime(0,0);
}
public void setTime(int arg1,int arg2){
dyear=arg1;
dmonth=arg2;
}
}
But how can applet know this class is here? Shall I include /common/shares/ in the CLASSPATH?
How applet and servlet import this class?
public class dataTransfer extends Object implements java.io.Serializable{
public int dyear,dmonth;
public dataTransfer(){
setTime(0,0);
}
public void setTime(int arg1,int arg2){
dyear=arg1;
dmonth=arg2;
}
}