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..

[909 byte] By [ketsona] at [2007-10-2 23:56:21]
# 1
its ok...i have solved it....thanks
ketsona at 2007-7-14 16:42:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
"in the receiving page, i have a scriptlet with a class definition for User." Did you mean that you use a page directive to import the class?<%@ page import="java.util.*, java.lang.*" %>
tolmanka at 2007-7-14 16:42:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
i had the full class definition <%class User{... }%>but is ok now.. i managed to solve it with a different solution...thanks
ketsona at 2007-7-14 16:42:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...