I installed Tomcat 4.1.18 under Windows 2000 Server and IIS, everything
is fine except two errors:
1. In jsp, when I import a class, this class should in some package,
otherwise you get ClassNotFoundException. But in Tomcat 4.0.4 I can
import a class without package. Is this a Tomcat 4.1.18 feature or bug
?

Example:
with package :
<%@ page import="testPackage.TestData" %>
is ok but without package :
<%@ page import="TestData" %>
you get exception.

2. In jsp, I can only include other jsp pages under that context, and I
can only use relative path, I can not use full url or cross context. I
still can do that in Tomcat 4.0.4, but in Tomcat 4.1.18 I can not.

Example:
if I have a context testContext, under that I have a folder jsp, and a
test.jsp under jsp folder.
use relative path is ok
<%@ include file="/jsp/test.jsp"%>
but can not use full url
<%@ include file="http://myhost:port/testContext/jsp/test.jsp"%>
and can not cross context
<%@ include file="../../otherContext/otherJsp/otherTest.jsp"%>



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

Reply via email to