-
type not visible
Hi there,
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:
HttpSession session = request.getSession(true);
TableData td = new TableData(...);
session.setAttribute("EnrollTableData", td);
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?
scholastic
|
|__admin
|........|__ConfirmEnrollment.jsp
|........|__mvcs
|..............|__TableData.java
|..............|__TableData.class
|
|__WEB-INF
.........|__classes
..................|__mvcs
.........................|__TableData.java
.........................|__TableData.class
Please advise,
Alan
Similar Threads
-
By Humberto Morales in forum .NET
Replies: 3
Last Post: 08-31-2001, 10:22 AM
-
By Michael Bourns in forum VB Classic
Replies: 10
Last Post: 12-08-2000, 02:22 AM
-
By Tahui in forum VB Classic
Replies: 2
Last Post: 11-22-2000, 10:24 PM
-
By Bob Rosen in forum authorevents.patrick
Replies: 1
Last Post: 09-05-2000, 08:21 PM
-
By Kunal Sharma in forum VB Classic
Replies: 2
Last Post: 04-25-2000, 03:45 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks