• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How-To Create WO application Portal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How-To Create WO application Portal (From: Jevon Hills <email@hidden>)

  • Prev by Date: Re: How to avoid Pknumber being increased auto when insert records?
  • Next by Date: NSDictionary Within An NSDictionary - Getting Values
  • Previous by thread: How-To Create WO application Portal
  • Next by thread: Re: How-To Create WO application Portal
  • Index(es):
    • Date
    • Thread