File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
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?
How to share a context (Struts and servlet)
"application" and "getServeltContext"
Servlet Calling Public Methods of Another Servlet
Diffenrence between application and servletConfig - servletcontext
how to change values in servlet context
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014