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
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.
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
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
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
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
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
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
8 matches
Mail list logo