tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bedell, Kevin" <>
Subject RE: JSP import attribute
Date Mon, 05 Jun 2000 16:18:27 GMT
I'd recommend downloading the .PDF file of the JSP Specificiation 1.1
reference from Sun's site. It specifies which way is "per spec".

We ran into the same issue with Tomcat 3.0 - as I recall the spec indicates
that Tomcat is correct. Read the spec - it's in there.

-----Original Message-----
From: Jamie Marconi []
Sent: Saturday, June 03, 2000 7:57 PM
To: ''
Subject: JSP import attribute

I understand that I can import multiple packages and classes in JSP with a
tag similar to this:

<%@ page language="java" 
         import="package.subpackage.*,package.subpackage.subsubpackage.*" %>

This seems to be as the spec defines the import attribute. I've found that
the Unify ServletExec JSP Servlet allows imports to be specified like the
following as well:

<%@ page language="java" 
         import="package.subpackage.subsubpackage.*" %>

With multiple import attributes where all packages are imported.  When I
tried this with Jasper the compiled page only seem to use the final import
attribute.  Is ServletExec incorrect by importing all packages, or is Jasper
incorrect by only importing the final package?  If neither is wrong (from my
interpretation of the spec) can we add functionality to Jasper to import all
packages defined by multiple import attributes?


Jamie Marconi

To unsubscribe, email:
For additional commmands, email:

View raw message