Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session tracking

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