tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <>
Subject Re: JSP import attribute
Date Sat, 03 Jun 2000 17:03:23 GMT
ServletExec is wrong. XML tags can't contain multiple attributes with
the same name; since the JSP spec is trying to be XML compliant as
much as possible, it makes sense that this is not allowed.

If ServletExec doesn't support commas, you can just specify multiple
<%@ page import> tags, one per package -- I'd hope it supports that!

 - Alex

Alex Chaffee             
jGuru - Java News and FAQs
Creator of Gamelan       
Founder of Purple Technology
Curator of Stinky Art Collective

On Sat, Jun 03, 2000 at 04:57:22PM -0700, Jamie Marconi wrote:
> 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.*"
>          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?
> Thanks,
> Jamie Marconi
> --------------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:

View raw message