• 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: Saving properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving properties


  • Subject: Re: Saving properties
  • From: Art Isbell <email@hidden>
  • Date: Tue, 18 Feb 2003 11:11:04 -1000

On Tuesday, February 18, 2003, at 09:21  AM, Dan wrote:

So in WO 5 what is the recommended (best) way to save properties
programmatically, so that they will be read back in the next time the
application is launched (and no - I don't particularly want to save them into
some kind of database table)?

This is really a Java, not WO question now that WO uses Java properties. So maybe someone with extensive Java experience can answer this question.


I believe that Properties files in WO frameworks will be merged in some way with the main app's Properties file. If this is true, what precedence exists? I.e., if the same property is defined in different Properties files, which value will prevail? If the app's Properties file overrides the same properties defined in framework Properties files, then writing any changed properties back to the app's Properties file might be the solution. The Properties.store() method appears to support writing properties back to the app's Properties file using an appropriate FileOutputStream object. However, WO apps are frequently installed with administrator ownership and permissions, yet many sites don't run WO app's with administrator privileges. In such situations, writing a Properties file might run afoul of file system permissions problems. Comments?

Art
http://homepage.mac.com/aisbell/
_______________________________________________
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: 
 >Saving properties (From: "Dan" <email@hidden>)

  • Prev by Date: Re: Saving properties
  • Next by Date: Need Help With 5.2 Web Services
  • Previous by thread: Re: Saving properties
  • Next by thread: Re: Saving properties
  • Index(es):
    • Date
    • Thread