| Author |
session tracking
|
manoj augustine
Greenhorn
Joined: Dec 13, 2001
Posts: 3
|
|
In our web-based-tutorial project,I have the follwing problem. An object of the class implementing the HttpSessionBindingListener is put in the session in the first page ,but when it is taken from the session i got classcastexception.The casting was done with the same class name.So in order to detect the class the following code is written Class c=Session.getValue("bindingbeansname").getClass(); String className=c.getName(); System.out.println("className"+className); when the name is printed the class name is same as the one which is put in the session.The name of the class is com.sbbb101.global.SessBindingListenerBean.Can any one tell me the reason why I am getting the exception.But when the name is changed to com.sbbb101.global.BeanTest.The code is working just like anything
|
 |
 |
|
|
subject: session tracking
|
|
|