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...

Directive Include and Action Include how both are working
in JSP, what is the difference between both?In which
suituation we have to choose these elements?

Answer Posted / samuel.t

We can say <%@ include ... %> is a static include.
The page which is included is changed then the including
page should also be changed.
For performance wise we can opt this,because the page is
inlcuded in the translation time.So only at the
first request it takes a momentary delay and comes to a
normal access from the second requests.


We can say <jsp:include ... > is a dynamic include.
The page which is included is changed, then it is not
required to change the main file.
Performance wise it is bit slow when compared to the
directive include because the page is included
only at the request time.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How servlets are deployed in java?

1028


What is the use of httpservletrequestwrapper?

1104


What are the key methods that are involved in processing of http servlets?

1113


What is api in servlet?

1023


Explain the difference between jsp and servlet?

1092


What are the advantages of cookies?

1126


Is dispatcher servlet a singleton?

1021


What are the types of Session Tracking ?

1151


Who is responsible for writing a constructor?

1267


What is the workflow of a servlet?

1181


What are the different methods of session management in servlets?

1031


Explain how to improve Servlet Performance?

1146


Why servlet is mostly used?

1246


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

1052


What is difference between cookies and httpsession?

1102