Home Help Java I JSP import



JSP import
Posted on: November 11, 2009 at 12:00 AM
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

Related Tags for JSP import :


More Tutorials from this section

Ask Questions?    Discuss: JSP import  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.