Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session tracking  RSS feed

manoj augustine
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
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 any one tell me the reason why I am getting the exception.But when the name is changed to code is working just like anything
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!