Nandita
Posts: 10
Nickname: nanditasr
Registered: Aug, 2003
|
|
Re: application-level variables in servlet on Domino
|
Posted: Aug 20, 2003 3:20 AM
|
|
Yes, I can use a session variable - I am already doing that for actions that depend on a specific user's role, etc.
However, when I need a variable that is common to the ENTIRE application (and does not change from user to user) - such as the database name, path, stylesheet path, etc. , it does not make sense to keep resetting it for every user, and creating so many instances, when I need just one instance.
Of course, I could carry the value across - post it from one servlet to the next each time - but it is too painful to pass it along everywhere. I want to be able to set it just once, and retrieve it anywhere.
|
|