Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
difference between getServletContext().setAttribute() and public data members in servlet class?
Joined: Mar 31, 2013
Aug 09, 2013 05:39:38
What is difference between getServletContext().setAttribute() and public data members in
Author and all-around good cowpoke
Joined: Mar 22, 2000
Aug 09, 2013 06:59:38
The difference is the scope in which these variables are visible.
Java Resources at
Author and ninkuma
Joined: Jan 10, 2002
Aug 09, 2013 08:22:16
And that public data members in the
will cause no end of threading issues and problems.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: difference between getServletContext().setAttribute() and public data members in servlet class?
"application" and "getServeltContext"
Diffenrence between application and servletConfig - servletcontext
Servlet Calling Public Methods of Another Servlet
how to change values in servlet context
How to share a context (Struts and servlet)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013