I can not use TestData without an import even it is in the default
package.
[EMAIL PROTECTED] 01/09/03 01:08AM
with package : %@ page import=testPackage.TestData % is ok
but without package : %@ page import=TestData % you get
exception.
See
I can not use TestData without an import even it is in
the default package.
OK, let me be clearer. Consider the following trivial code:
-
nopackage.java:
//package inpackage;
public class nopackage
{
public String s;
public nopackage(String
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
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
Did you by chance change from JDK 1.3 to 1.4 when you moved from Tomcat 4.0
to 4.1?
I did use JDK 1.4, but when I use JDK 1.4 and Tomcat 4.0.4, everything
is fine. So I think it is a Tomcat 4.1.18 issue.
[EMAIL PROTECTED] 01/08/03 04:26PM
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
I did use JDK 1.4, but when I use JDK 1.4 and Tomcat 4.0.4,
everything is fine. So I think it is a Tomcat 4.1.18 issue.
Well, since all production code should be in a package, I don't see an
issue. I'd regard the 4.0 behavior to be wrong and the 4.1.18 behavior to
be fixed.
--
Wendy Smoak
with package : %@ page import=testPackage.TestData % is ok
but without package : %@ page import=TestData % you get exception.
See http://forum.java.sun.com/thread.jsp?forum=31thread=231550.
You ought to be able to use TestData without an import, since it is in the
default package, but
PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 6:08 PM
Subject: RE: Tomcat 4.1.18 jsp import and include error
with package : %@ page import=testPackage.TestData % is ok
but without package : %@ page import=TestData % you get exception.
See http
On Thu, 9 Jan 2003, David Hemingway wrote:
Date: Thu, 9 Jan 2003 18:18:09 +1100
From: David Hemingway [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1.18 jsp import and include error
Noel,
I think they have