What's the difference between an import and include directive,
and also the difference between include directive and
include action?
Answer / vasanth
import directive is used to import any java classes into the jsp. eg : import java.lang.String, whereas include directive is used to include a content of another jsp.
'include' directive is used to include content from a jsp which is static for ever once the jspServlet created for it. The include jsp will not compipled each and every time it gets loaded Header and footer jsps can be included in this method.
If any jsp is included thru include action, the content of the jsp will be compiled and the respective output will be generated and rendered to the including jsp each and every time the including jsp is getting loaded.
Is This Answer Correct ? | 23 Yes | 4 No |
How are custom tags in jsp created?
Explain JSP directives.
What is the _jspservice() method?
How To maintain session ..?
What is the advantage of using getProperty action, as compared to the accessor method?
What is difference between include directive and jsp:include action?
What is request getcontextpath ()?
we want to provide the errors to the right side of the text field so what we want to add in jsp pages?
Why do we use jstl tags?
How can we prevent implicit session creation in jsp?
What is jsp and why do we need it?
What is the jsp:plugin action ?