----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It does have a search feature!
We cannot guess what you are trying to do:
#1. Include version numbers for all software.
#2. Include relevant configuration settings.
#3. Include full descriptions of the problem.
Got Linux? Seeing lots of java processes?
<http://java.apache.org/faq/?file=274>
----------------------------------------------------
Hello
I am having a problem finding a successful way of sharing data between two
servlets. I have tried two methods so far, both of which end up with a
separate set of data for each servlet that access it. The first involved
making a superclass with global static variables. Any servlet requiring
access to this single-source data would extend this class. The second
involved making a class containing a pointer to an instance of itself in
the form of a private static variable. The value of this variable is then
read by two other servlets using a public function call.
Any information as to why two separate instances of the data are being
created in both cases would be greatly appreciated.
Regards,
Stuart
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]