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?

Answers were Sorted based on User's Feedback



Directive Include and Action Include how both are working in JSP, what is the difference between b..

Answer / maruti.alapati

Directive Include:
1.Included the resources at translation time.
2.It supports only static resources.
3.If any changes are done in the JSP that are not freqently
changed.

Action Include:
1.Included the resources at request processing time.
2.It supports static & dynamic resources.
3.If any changes are done in the JSP that are change
freqently.

Is This Answer Correct ?    9 Yes 0 No

Directive Include and Action Include how both are working in JSP, what is the difference between b..

Answer / sangeeta

The <include> directive of JSP is used during the
translation process where servlet is generated.The files
which are static in nature should be used with this tag.

Whereas <jsp:include> action tag is used during the request
process where in changes can be incorporated dynamically.

Is This Answer Correct ?    7 Yes 1 No

Directive Include and Action Include how both are working in JSP, what is the difference between b..

Answer / ravikiran

Directive Include:
Directive include will include the included page to the
including page during translation time.Here the page will
included to the current page and compiled as a single
translation unit.And is mainly used when the including page
has some dependancy with the include page.

Action Include:
Action include will include the page during run time.means
the first page will will compiled individually and the
including page will compiled separetly and inclusion takes
place.so it's like a dynamic inclusion

Is This Answer Correct ?    2 Yes 0 No

Directive Include and Action Include how both are working in JSP, what is the difference between b..

Answer / 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

More Servlets Interview Questions

What is servlet collaboration?

0 Answers  


Why do we need servlet filter?

0 Answers  


why are using HttpServlet in realtime projects and why are not using Genericservlet

2 Answers  


What is the disadvantage of cookies?

0 Answers  


can it possible to validate form field before execution of a servlet service method if yes how??

6 Answers  


What is servlet and its life cycle?

0 Answers  


how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)

2 Answers   TCS,


What is the importance of init() method in Servlet ?

0 Answers   BirlaSoft,


Why servlet is used as controller ? Not JSP? I want complete explation?

0 Answers   Tech Mahindra,


What is a Session Id?

1 Answers  


What do you mean by singlethreadmodel interface?

0 Answers  


What is meant by a web application

0 Answers  


Categories