Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


diff between jsp include directive and jsp action include?

Answers were Sorted based on User's Feedback



diff between jsp include directive and jsp action include?..

Answer / jaspal

Syntax for JSP include directive is:
<%@ include file="relative file path" %>

Syntax for JSP action include is:
<jsp:include file="relative file path"
flush="true | false" >


JSP include directive is used to include static files within
a JSP page. Files are include at translation phase.

JSP action include is used to include dynamic files within a
JSP page. Files are include excution time. As request, a
file is refreshed.

Is This Answer Correct ?    30 Yes 8 No

diff between jsp include directive and jsp action include?..

Answer / vijaykumar venkatappa davanag

both are functioning same,
but (<%@ include file="/relative path" %> )directive includes the file contents at Traslation phase, if one or more number of files included in a jsp,all will traslated and create one single servlet class file.
In case of (<%jsp:include page="" %>)jsp:include includes the file contents at Request Processing phase, that means container is going create RequestDispatcher and calls the include() method. here each and every included jsp files converted into seperate servlet class files.

Is This Answer Correct ?    14 Yes 3 No

diff between jsp include directive and jsp action include?..

Answer / shiv kumar

include directive: it is static in nature
its execution is slower.
output comes with jsp page but
whole file contains is included in jsp then
compilation is done
include action: it is dynamic in nature.
its execution is faster.
output of yhe file willbe included in the
jsp file

Is This Answer Correct ?    14 Yes 8 No

diff between jsp include directive and jsp action include?..

Answer / chacko

include directive: The file gets included at the compile
time.

action tag : The file gets included at the run time. This
is faster.

Is This Answer Correct ?    11 Yes 5 No

Post New Answer

More Advanced Java Interview Questions

What does module-relative mean?

0 Answers  


Explain what is synchronization?

0 Answers  


What is source and listener?

1 Answers  


Do I need to import javlang package any time? Why ?

0 Answers  


What is the difference between a static and a non-static inner class?

0 Answers  


What are the different methods of identifying an object?

0 Answers  


what's the main difference between unix os and linux os?

2 Answers   TCS,


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

0 Answers  


What is meant by method chaining?

0 Answers  


whats is mean by filter?

1 Answers   SolutionNET,


What is multi-tasking? Types?

1 Answers  


Can I import same package/class twice? Will the jvm load the package twice at runtime?

0 Answers  


Categories