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
How the JSP file will be executed on the Server side?
What is the servlet?
Why do we have servlet filters?
What is cookie? Why is cookie used?
If some new data has entered the database, explain how can a servlet refresh automatically?
What are some advantages of storing session state in cookies?
When servlet is loaded?
What is getservletcontext?
What are the uses of servlet and what is servlet chaining?
What is servlet and its types?
What exactly are the functions of servlet?
What are the important functions of filters?
Explain the servlet context.
What is servlet and list its types?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?