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?
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 |
What do jsp literals consist of?
What language is jsp?
How can multiple submits due to refresh button clicks be prevented?
Is jsp compiled?
How are jsp(java server pages) better than asp(active server pages)?
Explain the jsp:setProperty action.
What is the need of jsp?
What is a hidden comment?
how to u se in jsp
What is context in jsp?
Explain the uses of jsp?
What program opens a jsp file?