how to call a method that is in the Session class
how to call a method that is in the Session class
- Subject: how to call a method that is in the Session class
- From: email@hidden
- Date: Wed, 22 Jun 2005 16:31:31 +0100
Hi folks,
My understanding is that I can call my own methods placed in the Session
class. I can use KVC to get at the variables stored in the session.
Strangely though, setting a variable's value in the session using KVC from
other classes appears to change the session variable's value within the
class where it is being set, but when another class gets the same
variable, the value seems to have returned to its initial value (that is,
the value to which the variable is set when it is initialized within the
constructor of the session). This looks to me like either the session is
being instantiated anew in the other class (although I never call new
WOSession()), or that I am misunderstanding something about KVC and
variable scope.
So, I decided to use getters and setters for this variable instead of KVC,
and then see what was happening to the variable.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden