Re: Getting a reference to the current application
Re: Getting a reference to the current application
- Subject: Re: Getting a reference to the current application
- From: Jonathan Rochkind <email@hidden>
- Date: Thu, 29 Jan 2004 16:27:48 -0600
I could have sworn there was an application() method in
WODirectAction too, but I guess there isn't, weird. At any rate, you
can always get a reference to the WOApplication object, everywhere
and anywhere, with:
WOApplication.application();
You may want to class-cast it to your custom WOApplication sub-class,
typically called Application:
Application app = (Application) WOApplication.application();
--Jonathan
At 4:37 PM -0500 1/29/04, Mark W. Shead wrote:
I am attempting to call a method in Application.java from a direct
action. I can't seem to find a way to get a reference to the
application from within the direct action. Is this possible?
Thanks!
Mark
_______________________________________________
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.