Differentiate between include directive and include action.



Differentiate between include directive and include action...

Answer / Rahul Nayak

The `<%@ include %>` directive is used to include another JSP page at the time of compiling the current page, while the `<jsp:include />` action is used to include another resource during runtime. The difference lies in when the included file is processed – the directive does so at compile-time, whereas the action does so at run-time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What is jsp and servlets?

1 Answers  


How do you connect to the database from jsp?

1 Answers  


How to implement a thread-safe jsp page?

3 Answers  


What is iselignored in jsp?

1 Answers  


What is difference between jsp and jstl?

1 Answers  


What is the difference between <jsp:forward> and sendRedirect?

6 Answers   HCL,


What do you know about pagecontext and what are the advantages of using it?

1 Answers  


What are directives? What are the different types of directives available in jsp?

1 Answers  


Why is used in jsp?

1 Answers  


What is a jsp and what is it used for?

1 Answers  


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

1 Answers  


How can multiple submits due to refresh button clicks be prevented?

1 Answers  


Categories