This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp" Watch "jsp" New topic


manoj Mahadik

Joined: Nov 21, 2000
Posts: 8
Why jsp:include action is less efficient but more flexible as
compared to jsp:include directive?
Ranch Hand

Joined: Oct 20, 2000
Posts: 68
Hi Manoj,
The <%@ include> directive is parsed during the translation phase and can specify only a "static" resource. Since it is compiled during translation time it is efficient. It is less flexible because it cannot handle "dynamic" content.
The <jsp:include> Action is processed at request time (included inside _jspService() method) can include both "static" and "dynamic" contents(hence flexible). Since it is handled at request time it is less efficient
I agree. Here's the link:
subject: jsp
Similar Threads
fieldset and form problem
I need to call a HtML file in c drive from my jsp
passing parameters in jsp:include
how to include jsp page in jsf
jsp:include on exam ?