You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hunter, Sandra" <Sa...@BCTransit.Com> on 2003/05/12 20:59:20 UTC

Importing a class

I am trying to import a class called DriverData that oddly enough includes
the Driver data parameters: driver url, username and password. It is kept in
WEB_INF\classes\idcard

I have tried these two ways:

<%@ page import = "idcard.DriverData" %>

Which gives me this error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.
error: File C:\Tomcat\webapps\idcard\WEB-INF\classes\idcard\DriverData.class
does not contain type idcard.DriverData as expected, but type DriverData.
Please remove the file, or make sure it appears in the correct subdirectory
of the class path.

C:\Tomcat\work\Standalone\shunter\idcard\index$jsp.java:5: Class
idcard.DriverData not found in import.

import idcard.DriverData;

<%@ page import = "DriverData" %>

Which gives me this error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

C:\Tomcat\work\Standalone\shunter\idcard\index$jsp.java:5: Class DriverData
not found in import.
import DriverData;

??? Any ideas?


Sandra

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org