In mock exam from Enthuware is question about import in JSP. There are two options 1)<%@ page import='java.util.*'%> 2)<%@ import package='java.util.*'%>
I think 1) is correct, but they marked 2) as correct.
Originally posted by David Ulicny: In mock exam from Enthuware is question about import in JSP. There are two options 1)<%@ page import='java.util.*'%> 2)<%@ import package='java.util.*'%>
I think 1) is correct, but they marked 2) as correct.
What is correct? Thanks.
Definitely 2) is correct. import is an attribute of the page directive and not a directive by itself.