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 are the supporting protocol by HttpServlet ?
What is a deployment descriptor?
How we can create war file in servlet?
Explain jsessionid?
Should I override the service() method?
How to commuincate between an applet and a servlet?
What is the difference between servlet and filter?
What is pure servlet?
What is Servlet API used for connecting database?
What do you mean by a filter and how does it work?
What are the key methods that are involved in processing of http servlets?
What is the use of servletconfig interface?
How to notify an object in session when session is invalidated or timed-out?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What is cookie? Why is cookie used?