Re: How-To Create WO application Portal
Re: How-To Create WO application Portal
- Subject: Re: How-To Create WO application Portal
- From: Art Isbell <email@hidden>
- Date: Mon, 19 Jan 2004 13:59:32 -1000
On Jan 19, 2004, at 12:02 PM, Jevon Hills wrote:
I would like the ability to add new applications to my server, and
have them "auto-magicaly" show up in the portal.
Unless I'm not understanding what you want to do, I would think that
you could use java.io.File to create a list of file names in the WO app
installation directory (e.g., File.list()), drop the ".woa" file
extension from each file name, and create an NSArray of those file
names that is bound to a WORepetition's "list" key. This repetition
would include a WOHyperlink whose "href" key would be bound to a URL
containing the file name (e.g.,
"http://<Web_server_host_name>/cgi-bin/WebObjects/<file_name>"). The
hyperlink would contain a WOString whose "value" key is bound to the
file name.
Because this directory listing would be created each time a new
session started or when Main was loaded, merely adding or deleting a WO
app from the directory would automatically result in the correct list
of hyperlinks being displayed.
Aloha,
Art
_______________________________________________
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.