| Author |
Sharing Objects
|
Abiodun Adisa
Ranch Hand
Joined: Jan 17, 2002
Posts: 495
|
|
|
if i want to share objects between different sessions i would get a HttpSession and use the setAttribute method. Please how do i make my object available to the whole application
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
Originally posted by Abiodun Adisa: if i want to share objects between different sessions i would get a HttpSession and use the setAttribute method.
No. That would only make the object (termed a scoped variable) available to the same session.
Please how do i make my object available to the whole application
You can create the scoped variable in application context by calling setAttribute() on the servletContext. [ December 01, 2007: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Sharing Objects
|
|
|