Put your .class files in $CATALINA_HOME/webapps/$YOUR_APP/WEB-INF/classes (preferably in packages under this directory)

Use an import statement to include a class in the top of your jsp:
<%@ page language="java"
import="some.package.DBTest"
%>

Rgrds.
Klaas

From: [EMAIL PROTECTED]
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Re: DataSource error (DBCP)
Date: Mon, 23 Dec 2002 08:42:05 +0000


while executing ... http://195.54.247.110:8080/DBTest/test.jsp

getting the error message....

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the jsp file: /test.jsp

Generated servlet error:
[javac] Compiling 1 source file

/home/sunil/jakarta-tomcat-4.1.18/work/Standalone/localhost/DBTest/test_jsp.java:48:

cannot resolve symbol
symbol : class DBTest
location: class org.apache.jsp.test_jsp
DBTest tst = new DBTest();
^



An error occurred at line: 6 in the jsp file: /test.jsp

Generated servlet error:
/home/sunil/jakarta-tomcat-4.1.18/work/Standalone/localhost/DBTest/test_jsp.java:48:

cannot resolve symbol
symbol : class DBTest
location: class org.apache.jsp.test_jsp
DBTest tst = new DBTest();
^
2 errors


anyone can help....
a. on this.....
b. see the first posting (compile error..)

T I A




--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 3 months FREE*. http://join.msn.com/?page=features/featuredemail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_addphotos_3mf


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to