An import is the attribute of the page directive inimports the java packages and it's classes whenever required for the page. More than one java packages and classes can also be imported by separating with comma (,). You can set the name of the class with the package name directly like packagename.classname or import all classes of the package by using packagename.*.
For example the JSP tag shown as:
will import all classes defined in
java.util package. You can also import a user-defined package like:
This statement will import the HelloWord
class defined in roseindia package.
Read more at
Ask your questions, our development team will try to give answers to your questions.