diff between jsp include directive and jsp action include?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
How substring() method of string class create memory leaks?
What is Remote Interface?
What is the difference between Super and This Keyword?
difference between sql exception class and sql warning class
does j2ee means advanced java
i have a 1000 objects in data base i need to display those in jsp's how can i retrive those objects in jsp. (consider the performance issue)
What is metaspace?
the use of try and ffinally keyword
whats is mean by jndi
What is source and listener?
Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");
What is the difference between RMI registry and OS Agent?