What is the use of Application Object and Session Object in
JSP?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
How to configure init parameters for jsp?
How can I declare methods within my jsp page?
What is declaration statement?
What class.forname will do while loading drivers?
Explain the various scope values for <jsp:useBean> tag.
What is jsp scriptlet?
What is jsp and why do we need it?
What is a jsp and what is it used for?
How to delete a cookie in jsp?
Explain JSP directives.
When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]
Give uses of object cloning?