What are the different scopes an object can have in a jsp page?



What are the different scopes an object can have in a jsp page?..

Answer / Anupam Vishwakarma

An object in a JSP page can have one of the following scopes: page, request, session, application and application-wide attributes. Page scope objects exist only within the current JSP page. Request scope objects are created for each HTTP request and are available to all JSP pages servicing that request. Session scope objects persist for the duration of a user's browsing session. Application scope objects have a lifecycle that lasts as long as the web application is active. Application-wide attributes are globally accessible across all sessions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What are the implicit el objects in jsp?

1 Answers  


What is el?

1 Answers  


What is c tag in jsp?

1 Answers  


What is jsp expression?

1 Answers  


Can constructor be used instead of init(), to initialize servlet?

1 Answers  


What is the use of Application Object and Session Object in JSP?

4 Answers   HCL, Symphony,


What is Include directive?

1 Answers  


What is the _jspservice() method?

1 Answers  


How do I view a jsp file?

1 Answers  


What are action tags?

1 Answers  


How can we forward the request from jsp page to the servlet?

1 Answers  


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

1 Answers  


Categories