Back to Browse

54 Difference between directive include and action include tag | JSP Tutorial | Interview question

96 views
Nov 9, 2024
13:08

Question : What is the difference between directive include tag and action include tag? =============================================================================== Ans: directive include tag action include tag %@inclue file="dest_url" jsp:include page="dest_url"/ ------------------------------------ ------------------------------------- 1) Given to perform the code inclusion 1) Given to perform output inclusion of destination JSP program to the of destination program to the source source code of JSP equivalent JSP program. servlet . 2) Program code inclusion at 2) Performs output inclusion at translation phase/Page compilation request processing phase, so its called phase, so its called Compile time d run time binding or dynamic binding. binding or static binding. 3) Does not allow the servlet 3) It allows the servlet program as program as the destination. destination URL 4) IT does not generate Separate 4) IT generates Separate JSP equiva- JSP equivalent servlet program lent servelt prgram for destination for destination JSP program. JSP program. 5) Suitable to use when destination 5) SUitable to use when destination programs are static web resource programs are dynamic pgms (JSP, programs, like html, text file etc.. Servlet etc...) 6) Allows to use both XML and 6) Allows to only XML syntax. standard syntax.

Download

0 formats

No download links available.

54 Difference between directive include and action include tag | JSP Tutorial | Interview question | NatokHD