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
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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?
Servlet Calling Public Methods of Another Servlet
Diffenrence between application and servletConfig - servletcontext
"application" and "getServeltContext"
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-2014