How can I share objects across different sessions?

Answer Posted / aman kumar

with the help of session.setAttribute()and session.getAtribute()we can share Httpsession object across different servlet and jsp.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a web application

733


Explain the features are in servlet 3?

794


How the servlet is loaded?

770


What is servlet instance?

734


What is the difference between a generic servlet and http servlet?

701


Explain the lifecycle of a servlet?

696


What is the use of servlet context?

732


What is the functionality of actionservlet and requestprocessor?

779


What do you mean by session tracking?

890


What is MIME Type?

847


When should you prefer to use doget() over dopost()?

829


List out difference between a JavaBean from a Servlet?

727


If my browser does not support cookie, and my server sends a cookie instance what will happen?

821


Explain in brief the directory structure of a web application?

776


Why don't we write a constructor in a servlet?

776