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
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: November 11, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles