I'm having a problem trying to figure out why it is a JSP page cannot see a class named TableData. In a servlet I saved an instance of TableData into the Session object, like so:
Then I attempt to retrieve the TableData object in my JSP page like so:
<%@ page import="mvcs.*" %>
<%
....
TableData td = (TableData)session.getAttribute("EnrollTableData");
....
%>
The TableData class is in a directory named mvcs. It exists in two places actually. See the directory structure below. I did include the package statement "package mvcs;" in my TableData.java file.
When I try to access the JSP page I get the following message:
The type TableData is not visible
This doesn't make sense to me. TableData is in the same directory as a lot of the other classes I created, and I can access them, no problem.
My directory structure is as follows. Maybe this will help?