class name not resolved
hello guys.. i am building an application in jsp and servlet... my servlet controller adds three elements to the user session..since only objects can be added, i created a User class which is instatiated with the three parameters
User user =new User(a,b,c)..
then i add the Object to the seesion....session.setAttribute("user",user);
finally all info are forwarded to another jsp page where a sql query is executed.. the parameter needed to execute is contained in the Object user..
in the receiving page, i have a scriptlet with a class definition for User..
now to retrieve the variable i first try: User us=session.getAttribute("user");
but when i try to run it, i get a "cannot resolve symbol" message...
why is User not recognized? I thought that by inserting the class definition within the page, all would be resolved...
please help
thanks..

