>From fusterjj's code!!:
<%@ page 
 import = "java.io.*"
 import = "java.lang.*"
 import = "java.sql.*"
%>

These are three distinct import directives, not one import delimited by
three newlines.

Such a statement would look like:
<%@ page 
 import = "java.io.*,
             java.sql.*"
%>

        I checked the JSP syntax page for JSP1.2, and it does seem that only
one import
statement is supported per page tag.  I don't know about multiple page
tags...

        Bill

-----Original Message-----
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 11:25 AM
To: Tomcat Users List
Subject: RE: code!!


>       I'm not sure if it matters, but have you tried 
> rewriting the code
> with the following:
> 
> <%@ page import = "java.io.*, java.sql.*" %>
> 
>       in place of the page element defined below?  I've never 
> seen anyone split up imports into different statements.

Those aren't different statements - they are just separated by a newline in
the single page directive.

I can't remember offhand if you are allowed more than one page directive,
but I think so, so even if they were written as separate import statements I
don't think it'd be a problem.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***************************************************************
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***************************************************************




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to