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
What is called a session?
What is the web server used for running the Servlets?
what is multiple server?
Why filter is used in servlet?
What is the capacity the doget can send to the server?
Is servlet a framework?
What do you mean by servlet?
What are the uses of servlets?
Why do we need servlet filter?
How do you run a servlet?
Explain the difference between servlet and cgi?
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 ?
How do cookies work in servlets?
Which application server is best for java?
Write the code to get the server information in servlet.