tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <edw...@charter.net>
Subject Unable to compile class for JSP
Date Thu, 01 Jan 1970 00:00:00 GMT
Hi,

I'm having a newbie type of problem with getting a JSP to compile.  Seems it can't find my
class.

Rest of error messages:
Generated servlet error:
The import FOO cannot be resolved


Following files are located in Tomcat/webapps/VIP
Code:
Home.jsp
<%@ page import="java.util.*" %>

<html>
<body>
<br>
<h2 align="center">Home Page</h2>
<p>&nbsp;</p>
<jsp:include page="DisplBar.jsp" flush="true"/>
<p><input type=submit value="submit"></p>
</body>
</html>

DisplBar.jsp
<jsp:directive.page import="java.util.*"/>
<jsp:directive.page import="FOO"/>   // have also tried "FOO.*"
.
.
.
foo.bar();
.
.
.

I have copies of the complied class foo.class in Tomcat/webapps/VIP, in Tomcat/webapps/VIP/WEB-INF,
and in Tomcat/webapps/VIP/WEB-INF/classes.

Class foo is in the default package.

Beside using the default package, what am I doing wrong?  Thanks.

Ed

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message