What are scopes an object can have in JSP page?

What are scopes an object can have in JSP page?

Answer
An object can have the following scope in a JSP page:

 Page Scope:
 Objects with page scope can be accessed only within the page

 Request Scope:
 Objects with this scope are accessible from pages processing the same request in which they were created.

 Session Scope:
 Objects with session scope are accessible in the same session

 Application Scope:
 This creates a global object that is available to all pages.
Explain why and how to disable session in a JSP page.
JSP Session - Disabling the session improves the performance of a JSP container. When a JSP is requested, an HttpSession object...
Benefits of JSP
JSP benefits - JSP technology emphasizes on reusing the components that helps to develop more purposeful....
JSP Scriptlet - What is Scriptlet tag?
JSP Scriptlet - Scriptlet tag is a type tag used for inserting Java Code into JSP and is written as...
Post your comment