C
Chris Riesbeck
In JSP, is <%@ page import="..." import="..." ... %> legal?
I had interpreted the text
"You can use the <%@ page %> directive more than once in
a translation unit, but you can only use each attribute,
except import, once. Because the import attribute is
similar to the import statement in the Java programming
language, you can use a <%@ page %> directive with
import more than once in a JSP file or translation unit."
at http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html
to mean that
<%@ page import="..." %>
<%@ page import="..." %>
was OK, but not repeating import, since attributes in general
are never repeatable within a tag.
But for the <%@ tag ...%> directive, the following site is
quite explicit that <%@ tag import= import= ... %> is legal:
http://today.java.net/pub/a/today/2003/11/14/tagfiles.html
So is it legal for the page directive too?
I had interpreted the text
"You can use the <%@ page %> directive more than once in
a translation unit, but you can only use each attribute,
except import, once. Because the import attribute is
similar to the import statement in the Java programming
language, you can use a <%@ page %> directive with
import more than once in a JSP file or translation unit."
at http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html
to mean that
<%@ page import="..." %>
<%@ page import="..." %>
was OK, but not repeating import, since attributes in general
are never repeatable within a tag.
But for the <%@ tag ...%> directive, the following site is
quite explicit that <%@ tag import= import= ... %> is legal:
http://today.java.net/pub/a/today/2003/11/14/tagfiles.html
So is it legal for the page directive too?