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
How servlets are deployed in java?
What is the use of httpservletrequestwrapper?
What are the key methods that are involved in processing of http servlets?
What is api in servlet?
Explain the difference between jsp and servlet?
What are the advantages of cookies?
Is dispatcher servlet a singleton?
What are the types of Session Tracking ?
Who is responsible for writing a constructor?
What is the workflow of a servlet?
What are the different methods of session management in servlets?
Explain how to improve Servlet Performance?
Why servlet is mostly used?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is difference between cookies and httpsession?