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

Can you refresh servlet in client and server-side automatically?

626


How do you define a servlet?

530


What is httpservlet and how it is different from genericservlet?

617


Name the packages that work with servlet?

553


When servlet is loaded?

598






Explain the steps involved in placing a servlet within a package?

576


What do you mean by singlethreadmodel interface?

584


What are the features added in Servlet 2.5?

775


What do you mean by cgi?

534


How can the session in servlet can be destroyed?

720


What are the drawbacks of cgi?

578


What is servlet used for?

700


What is a server side include (ssi)

574


What is war file?

585


What is servlet looping or chaining?

662