aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes session tracking Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "session tracking" Watch "session tracking" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: session tracking
 
Similar Threads
Problems with bean example
Insert method....
Session replication with Tomcat 6
implicit objects in jsp
ClassNotFoundException