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: 'Vector' class not available in jsp page
Date Fri, 04 Jan 2002 22:13:39 GMT


On Fri, 4 Jan 2002, Eric Hansen wrote:

> Date: Fri, 04 Jan 2002 14:14:06 -0800
> From: Eric Hansen <ephansen@pacbell.net>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: 'Vector' class not available in jsp page
>
> In Tomcat 3.2.3, I was able to use (in a JSP Page) the Vector class
> from the java.util package **without** explicitly importing it using
> <% @page import="java.util.Vector"%>
>
> When I'm testing using Tomcat 3.3, I get a ERROR 500 - the Vector
> class is not available.  When I include the above import declaration,
> it works fine... but I really don't want to go back and add that
> declaration to all my jsp pages if there is a way to avoid it.
>
> I don't remember having to make any specific entries in the Tomcat
> 3.2.3 setup to enable certain Java packages.  Any ideas?
>

Tomcat 3.2's JSP code generator was broken -- it emitted more imports
(including java.util.*) than it should have.  The only legal default
imports (according to the spec):

    java.lang.*
    javax.servlet.*
    javax.servlet.http.*
    javax.servlet.jsp.*

> Thanks
> Eric Hansen
>

Craig



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message