Forums Register Login

difference between getServletContext().setAttribute() and public data members in servlet class?

+Pie Number of slices to send: Send
What is difference between getServletContext().setAttribute() and public data members in servlet classes?
+Pie Number of slices to send: Send
The difference is the scope in which these variables are visible.

Bill
+Pie Number of slices to send: Send
And that public data members in the servlets will cause no end of threading issues and problems.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1113 times.
Similar Threads
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
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 01:58:57.