Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
no wonder he is so sad, he hasn't seen this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!