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

Which event is fired at the time of setting, getting or removing attribute from application scope?

1189


What is SingleThreadModel interface?

1208


What is a web container and what is its responsibility?

1032


When should you prefer to use doget() over dopost()?

1220


How does tomcat servlet container work?

1131


What is dispatcher servlet?

1108


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1185


What are the types of Session Tracking ?

1210


Explain servlet life cycle?

1187


Which java application server is the best?

1084


How can we create deadlock situation in servlet?

1488


What are the types of servlet?

1379


Whether thread can be used in servlets?

1262


Explain in brief the directory structure of a web application?

1155


List out difference between a JavaBean from a Servlet?

1081