- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is import attribute in JSP?
The import attribute serves the same function as and behaves like, the Java import statement. The value for the import option is the name of the package you want to import.
To import java.sql.*, use the following page directive −
<%@ page import = "java.sql.*" %>
To import multiple packages, you can specify them separated by comma as follows −
<%@ page import = "java.sql.*,java.util.*" %>
By default, a container automatically imports java.lang.*, javax.servlet.*, javax.servlet.jsp.*, and javax.servlet.http.*.
- Related Articles
- What is autoFlush attribute in JSP?
- What is contentType attribute in JSP?
- What is errorPage attribute in JSP?
- What is isErrorPage attribute in JSP?
- What is extends attribute in JSP?
- What is info attribute in JSP?
- What is isThreadSafe attribute in JSP?
- What is language attribute in JSP?
- What is session attribute in JSP?
- What is isELIgnored Attribute in JSP?
- What is isScriptingEnabled Attribute in JSP?
- What is a buffer attribute in JSP?
- What is static import in Java?
- What do the id and scope attribute mean in the action elements in JSP?
- How can I create custom tag in JSP which can accept attribute from parent jsp page?

Advertisements