JSP: page with repeated import legal?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top