Well the reason why i ask this question is because this is user class that holds a user name, user login, and user password,
so when i get the info to add a new user from the submitted form, in my servlet i just create a user object to input the user info from the form and then store the user object i just created into a session variable.
but my problem is that get an compile error message when i create a new user object in my doGet() method
here is my error:
AddStudent.java:32: cannot resolve symbol
symbol : class User
location: class webapp.AddUser
User one = new User();
^
AddStudent.java:32: cannot resolve symbol
symbol : class User
location: class webapp.AddUser
User one = new User();
^
2 errors
any would help if my error would be awesome, thank
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.