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?



How do you prevent the creation of a session in a jsp page and why? What is the difference between i..

Answer / Jitendra Singh

To prevent the creation of a session in a JSP page, use <%@ page session="false" %> at the top of the page. This prevents any new sessions from being created when this page is requested. The difference between include directive and jsp:include action is that include directive executes the included file during compilation time, while jsp:include action includes the file at runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What do jsp literals consist of?

1 Answers  


What language is jsp?

1 Answers  


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

1 Answers  


Is jsp compiled?

1 Answers  


How are jsp(java server pages) better than asp(active server pages)?

1 Answers  


Explain the jsp:setProperty action.

1 Answers  


What is the need of jsp?

1 Answers  


What is a hidden comment?

1 Answers  


how to u se in jsp

0 Answers   Google,


What is context in jsp?

1 Answers  


Explain the uses of jsp?

1 Answers  


What program opens a jsp file?

1 Answers  


Categories