Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

useBean and session problem

Status
Not open for further replies.

25884

Programmer
Mar 12, 2001
46
AP
Hi!
i am facing this problem--
i am using the useBean tag with the id,class and scope attributes all properly set to create an instance of my bean.This specific bean instance has the scope set to session as i intend it to last the session.With 1 session everything works fine but as soon as i start up another browser window and start a new session i get a ClassCastException.I have tried to use the type attribute in the useBean tag...but it does not work...i have tried up by changing the scope of the bean from session to request, application as well as page(but obviously the one that i need IS session)
Can anyone suggest me something to try.
Thanks,
Sonali.
 
i don't think it's related to the bean's scope ... you should double-check your code ... i guess there's a resource or something that was not used when there's only one user, but as soon as there was 2 users it crashed ... could you please send the line where the classcast happens so that we can help you more efficiently ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top