This attribute is used to import interfaces, classes, or whole packages. You can import more than one package separated by commas.
Syntax:
<%@page import="value1,value2..."%>
Example:
welcome.jsp
<%@ page import="java.util.Date" %> <html> <head> <title>import page directive example</title> </head> <body> Current date: <%= new Date() %> </body> </html>
web.xml
<web-app> <welcome-file-list> <welcome-file>welcome.jsp</welcome-file> </welcome-file-list> </web-app>