Re: An Apps Session from a Framework
Re: An Apps Session from a Framework
- Subject: Re: An Apps Session from a Framework
- From: Chuck Hill <email@hidden>
- Date: Thu, 29 Apr 2004 21:34:48 -0700
Put a WOSession sub-class in the framework, say UserSession. Make this
implement setUser, setEntry etc etc. Cast to this session in the FW.
In the Application make Session extend UserSession instead of
WOSession. Or create an interface with setUser, setEntry etc etc.
and cast to this and have Session implement the interface.
Chuck
On Apr 29, 2004, at 9:23 PM, Jonathan Fleming wrote:
I have a logout component that I want to put into a framework but it
has references to session eg.
Session sess = (Session)session();
sess.setUser(null);
sess.setEntry(null);
sess.setUsername(null);
sess.terminate();
What is the best way to point this back to the calling app and
therefore the session that wants to logout and terminate?
At present I get the obvious error:
cannot resolve symbol
symbol : class Session
location: class LogoutComponent
Session sess = (Session)session();
^
C:
\AppleJavaProjects\MyFrameworks\ReusableComponents\ReusableComponents.b
uild\derived_src_java\LogoutComponent.java:15: cannot resolve symbol
symbol : class Session
location: class LogoutPrefsLinksComponent
Session sess = (Session)session();
TIA
Jonathan :^)
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.