How to manage application properties?

2002-09-22 Thread C F
Hello, This is a very newbie question I'm sure, so this might not be the appropriate forum. Maybe it belongs in the Tomcat forum? Not sure. Pretty basic objective I just want to be able to put application settings (things like path names, integer values, etc) in a *.properties file and

Re: How to manage application properties?

2002-09-22 Thread kiuma
You should prefer to use struts-config.xml to get applets props. Take a look to the samples bundled with struts and also use struts console to configure struts, at least at the beginning! C F wrote: Hello, This is a very newbie question I'm sure, so this might not be the appropriate forum.

Re: How to manage application properties?

2002-09-22 Thread Eddie Bush
How many settings do you have? Are they volatile? You could: - specify settings as an init-param to the controller servlet. - specify settings as context params - use a properties file (as you mentioned) and look it up out of the classpath To get your properties read-in, you

Re: How to manage application properties?

2002-09-22 Thread C F
Excellent... thanks for the info. I probably average 5-10 properties for some of my controller servlets, so I think I'll use the init-param method as you suggested. I guess I just got confused as to why there was the ApplicationResources.properties files when we did have the

RE: How to manage application properties?

2002-09-22 Thread Taylor, Jason
Users Mailing List Subject: Re: How to manage application properties? Excellent... thanks for the info. I probably average 5-10 properties for some of my controller servlets, so I think I'll use the init-param method as you suggested. I guess I just got confused as to why

Re: How to manage application properties?

2002-09-22 Thread micael
Attached is a demo.Demo class which utilizes a PropertiesManager class. The PropertiesManager class creates a properties file to keep track of properties files, then creates and uses properties files with and without defaults. I use it to demonstrate to students. You can put anything you

Re: How to manage application properties?

2002-09-22 Thread micael
You can create classes and objects in struts just like you can with any other application. Attached is a file with a few classes I use to teach students about the Properties class in java.util. Change the value in Folder (line 138, if you are not using Windows). PropertiesManager creates

Re: How to manage application properties?

2002-09-22 Thread Eddie Bush
It really depends what the scope of things is you're trying to configure ... Taylor, Jason wrote: Properties are huge. I'd use properties rather than init-params unless I *knew* I had no use for sub-applications. -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For