Hi ranchers,
I tried to import a class(e.g. test.class)from
JSP and put it in ..\WEB-INF\classes file. However, it got a complilation error:
"org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated
servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\test\clientsearch_jsp.java:8: '.' expected
[javac] import
test;
^
.........."
and my page directive is:
<%@ page import="test" %>
I compiled it fine in
tomcat 4.0 but failed in 4.1. Can anyone tell me what happened?
Many thanks!