× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> Remember, "storage" is a LOCAL variable, not an INSTANCE
> variable.  These
> are two totally different concepts.  Have I cleared it up at all?
>
> Joe

Absolutely and thank you for the response, I was driving myself crazy!  Like
I said, I was afraid I was making it too complicated and sure enough I was
right.  I thought I was perhaps misunderstanding the term "instance
variables" which is what threw me for such a loop.  I get it now... they are
the non-static variables outside any methods in the Class.

I only had one which was getting populated by request.getParameter(), so I
simply replaced it with that method call in the couple of places using it so
it should be OK now.  Basically I was doing it pretty much correctly
already, but I read your message and talked myself into thinking I had to
change everything... great way to start the day! :-)

I do have one remaining question... why have a Storage object at all?  Right
now I am storing all my needed objects in the session.  Doesn't using a
Storage object simply add an unnecessary layer?

Also thanks for the lesson about "synchronized( session )".  I got it from
Marty Hall's book and have simply used it ever since.


Joel R. Cochran
Director of Internet Services
VamaNet.com
(800)480-8810
mailto:webmaster@vamanet.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.