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

What is called a session?

621


What is the web server used for running the Servlets?

579


what is multiple server?

1758


Why filter is used in servlet?

526


What is the capacity the doget can send to the server?

574






Is servlet a framework?

541


What do you mean by servlet?

719


What are the uses of servlets?

621


Why do we need servlet filter?

566


How do you run a servlet?

542


Explain the difference between servlet and cgi?

609


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

610


How do cookies work in servlets?

581


Which application server is best for java?

556


Write the code to get the server information in servlet.

571