tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Tomcat 4.1.18 jsp import and include error
Date Thu, 09 Jan 2003 07:19:39 GMT


On Thu, 9 Jan 2003, David Hemingway wrote:

> Date: Thu, 9 Jan 2003 18:18:09 +1100
> From: David Hemingway <dbh001@kooee.com.au>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Re: Tomcat 4.1.18 jsp import and include error
>
> Noel,
>
> I think they have clamped down in tomcat 4.1.X all classes now muct be
> within packages. This wasn't the case in tomcat 4.0.X or before. When I
> changed from 4.0.6 to 4.1.12 I had to formally package all of my beans
>

It's *not* actually a Tomcat issue at all; it's a JDK issue.  JDK 1.4.1
enforces the Java Language Specification requirement (discussed below),
whereas JDK 1.3 did not.  There is no Tomcat involvement in *any* of this
(other than the fact that it uses the standard reflection capabilities
provided by the JVM).

Bottom line -- the only reason a Tomcat 4.0.6 to 4.1.12 upgrade should
have caused you any grief with unpackaged classes is if you also upgraded
your JDK up to 1.4.1 or later.

> regards,
> Dave
>

Craig


>
> ----- Original Message -----
> From: "Noel J. Bergman" <noel@devtech.com>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> 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://forum.java.sun.com/thread.jsp?forum=31&thread=231550.
> >
> > You ought to be able to use TestData without an import, since it is in the
> > default package, but according to the above, you cannot import a class
> > without a package name because the generated java import statement would
> be
> > considered invalid.  Mind you that isn't clear from JLS 7.5.1:
> >
> http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html#266
> > 99.
> >
> > --- Noel
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message