JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1846 Page Views: 

How can we import a Java package in a JSP page?



Posted By: Avi Date: 30 October 2009 06:01:00 AM
 Answer:

Following page directive is used to import Java package in a JSP page:

<%@ page import="package" %>


Posted By: eTechPlanet


Date: 30 October 2009 06:01:00 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image xcCzlk
Related Questions
JSP : Is HTML page a web component?  

Is HTML page a web component?  

No.
Category: JSP Date: 11/4/2010 12:15:58 AM
JSP : Can we call a servlet with parameters in the URL?

Can we call a servlet with parameters in the URL?

Yes. As like ?param=value
Category: JSP Date: 11/3/2010 11:42:58 PM
JSP : How  response has already been committed error?

How response has already been committed error?

This error occurs only when tring to redirect a page after flushing the output buffer and the reason....
Category: JSP Date: 11/3/2010 11:09:57 PM
JSP : How can I enable session tracking for JSP pages if the browser has disabled cookies?

How can I enable session tracking for JSP pages if the browser has disabled cookies?

You can still use session tracking using URL rewriting and it should to append the session ID for ea....
Category: JSP Date: 11/3/2010 8:48:57 PM
JSP : What is deployment descriptor?

What is deployment descriptor?

A deployment descriptor is an XML based file which describes a web application's  deployment se....
Category: JSP Date: 11/3/2010 3:31:59 PM