About Question enthuware.jwpv6.2.981 :
Posted: Mon Jan 16, 2012 4:29 pm
Are you sure about this? On my PC I have Tomcat and it works like a charm. The documentation states about the import :<%@ page import="java.util.*" import="java.text.*"%>
import is an attribute and can occur only once inside a page directive.
but indeed is not very specific if multiple import can be defined in a single page directive, or in multiple directives in the same page.There shall be only one occurrence of any attribute/value pair deļ¬ned by this directive in a given translation unit, unless the values for the duplicate attributes are identical for all occurrences. The import and pageEncoding attributes are exempt from this rule and can appear multiple times.
Multiple uses of the import attribute are cumulative (with ordered set union semantics).
An old Tomcat bug address the same issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=4022
Anyway, the explanation as it is is not correct.