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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an expression in jsp?

947


What is called jsp directive?

945


What is difference between javascript and jsp?

948


How can I handle jsp page errors?

952


How can I maintain session in JSP Page in the bases of user name and password:

941


How do I run a jsp file?

937


How do I view jsp files in my browser?

933


Give an example where you need jsp custom tag?

889


What is the use of jstl?

863


What is cookies in jsp?

877


What is jstl jar?

879


What are the lifecycle phases of a jsp?

1015


What is the use of implicit object named "application" in Application?

1686


Give a sample jsp configuration in the deployment descriptor.

923


Why do we use jsp?

907