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
Explain the architechure of a servlet?
what is servlet chaining?
Explain servlet.
What is the structure of the http response
If servlet receives multiple requests, how many objects will it create?
What are advantages of servlets over cgi?
When servlet object is created?
why we should override only no-agrs init() method.
What is servlet invoker?
Describe servlet?
What's the difference between servlets and applets?
What do you mean by session tracking and also explain its techniques?
What are different Authentication options available in Servlets.
Can filter be used as request or response?
What is the use of request dispatcher interface?