Home Help Java I JSP import
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

JSP import

Advertisement
An import is the attribute of the page directive in JSP that imports the java packages and it's classes whenever required for the JSP page.

JSP import  

     

An import is the attribute of the page directive in JSP that imports the java packages and it's classes whenever required for the JSP 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: 

<%@ page import=?java.util.*? %>  

will import all classes defined in java.util package. You can also import a user-defined package like: 

<%@ page import=?roseindia.HelloWorld? %>  

This statement will import the HelloWord class defined in roseindia package. 

Read more at

http:/www.roseindia.net/jsp/ImportAttribute.shtml

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 11, 2009

Ask Questions?    Discuss: JSP import  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com