Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What's the difference between an import and include directive,
and also the difference between include directive and
include action?



What's the difference between an import and include directive, and also the difference between..

Answer / vasanth

import directive is used to import any java classes into the jsp. eg : import java.lang.String, whereas include directive is used to include a content of another jsp.

'include' directive is used to include content from a jsp which is static for ever once the jspServlet created for it. The include jsp will not compipled each and every time it gets loaded Header and footer jsps can be included in this method.

If any jsp is included thru include action, the content of the jsp will be compiled and the respective output will be generated and rendered to the including jsp each and every time the including jsp is getting loaded.

Is This Answer Correct ?    23 Yes 4 No

Post New Answer

More JSP Interview Questions

What is taglib uri in jsp?

0 Answers  


How is scripting disabled?

0 Answers  


what is social transformation system? any site reference? How i get requirement gathering about for it? i wanna build website on this topic

0 Answers  


How can we avoid direct access of jsp pages from client browser?

0 Answers  


How can a cookie is deleted with JSP?

1 Answers  


In the servlet 2.4 specification singlethreadmodel has been deprecated, why?

0 Answers  


we want to provide the errors to the right side of the text field so what we want to add in jsp pages?

1 Answers   ITC Infotech,


How to works asjx in jsp?

1 Answers  


What are jsp and servlets?

0 Answers  


What are the jsp tags?

0 Answers  


What is scripting elements in jsp?

0 Answers  


How do I open a jsp file?

0 Answers  


Categories