Tomcat can't find class that is placed directly under classes folder
Respected PROGRAMMERS, There was a jsp file
<%@ page import="foo.*" %>
<html>
<body>
The page count is:
<%=Counter.getCount()%>
</body>
</html>
I kept "Counter" Class's package "foo" in
C:\apache-tomcat-6.0.32\webapps\God\WEB-INF\classes
and container could find the class from its package "foo"
But when I try to keep some other class file directly under \WEB-INF\classes and not in any specific package such as "foo", then container can't find that class.
Please help me
Re: Tomcat can't find class that is placed directly under classes folder
I'm not sure which part is giving you trouble- accessing classes that DO have a package in the top-level classes directory, or accessing classes that DON'T have a package from a package-level directory?
Re: Tomcat can't find class that is placed directly under classes folder
Hi,
I think in your case the import will be directly the file name without any package .
Please try it
<%@ page import="Content" %>
bean factory