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

Answers were Sorted based on User's Feedback



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

Answer / krrish

Application object is used to maintain the information
related to the current webapplication which is running in
the webcontainer.

Session object is used to maintain the information related
to the browser from which the user gets the request.

Is This Answer Correct ?    42 Yes 2 No

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

Answer / pratheeka reddy

Session represents the HTTP session object associated
with the request,obtained from request getSession().
Application represents the servletcontext object for
storing persistent data for all clients.
The difference between session and application is that
session is tied to one client,but application is for all
clients to share persistent data.

Is This Answer Correct ?    22 Yes 3 No

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

Answer / guest

Application Object is limited to with in the WebApplication

Session is limited to the single client

Is This Answer Correct ?    22 Yes 7 No

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

Answer / hazarath k

When a Java bean object is used in while processing
multiple requests and the information is specific to the
particular client, then we place that Java been object in
Session.

When a Java bean object is used in while processing
multiple requests and the information is not specific to
the any client, then we place that Java been object in
Application.

Is This Answer Correct ?    16 Yes 3 No

Post New Answer

More JSP Interview Questions

A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?

0 Answers  


Why is it not necessary to configure standard jsp tags in web.xml?

0 Answers  


What is jsp index?

0 Answers  


How can you make the finally clause not to fail to execute?

0 Answers  


How can I override the jspinit() method within a jsp page?

0 Answers  


Plz any body tell me why use jsp over servlet.what is the benefit of jsp over servlet?

4 Answers   Future Generali, HCL,


What are the types of directives in jsp?

0 Answers  


How can I prevent the use of scripts and java code on the jsp page?

0 Answers  


Which jsp method cannot be overridden?

0 Answers  


Which jsp lifecycle methods can be overridden?

0 Answers  


Differentiate between jsp scriptlet tag and declaration tag.

0 Answers  


Can we use the exception implicit object in any jsp page?

0 Answers  


Categories