> -----Original Message----- > From: Lyle Eckert [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 9:37 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Some Newbie Questions > > > Ok, so I have been working with WW for about 3 days now, and > it seems pretty nice, but have a couple questions. > > First, is there a default properties file that can be used > for holding data that is specific to the whole application, > and not just one form (like in the examples where there is a > FormTest.properties). I tried using the webwork.properties, > but it didn't seem to like that. Of course > I could be doing it wrong :). I was able to read my own properties > file, but wasn't sure if that is the best way to go.
I assume you're talking about properties files for pulling message texts? WW will walk up the inheritance tree looking for the property if it is not found in one named the same as your class, so if you have a common base class for all of your Actions, you can create a default message file with that name in the same package (my/app/MyBaseAction.properties). > > Second, kind of on the same lines, I noticed there was no way > to see if a property is in a file, so I was wondering why > not? Because a hashtable is used, I wouldn't see why it > couldn't just use containsKey(), and containsValue(). Just > am curious about this as I have found I think that would be > nice instead of having to catch an error, or having to walk > through the list. Not sure where you want to use this? Can you explain? > > Third, I noticed that there was a tutorial on the wiki site > but it doesn't seem to be working, so is it permanently down > or just down for the time being? > > Any help is appreciated. > > Thanks, > > > > Lyle Eckert > [EMAIL PROTECTED] > (651) 917-4747 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of > TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you > feeling lost and > disoriented. TotalView can help you find your way. Available > on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork