ive got a servlet with a class file contained within file path webapps/ass2/WEB-INF/classes/User.class, the class represents a user bean required for my application. In jsp, ive go the imports organised as `<%@page import="mypck.User" %>. im being thrown an error by apache tomcat when i try to load the page,
An error occurred at line: 12 in the jsp file: /fourm.jsp
User cannot be resolved to a type
9:
10: <head>
11: <%
12: User user = (User)session.getAttribute("userBean");
13:
14: String username = user.getName();
15:
i guess i havent imported the class correctly then? my question is: how do i import this class to the jsp file