Hi Gerry,

To get config settings..you can use code like this:

        String filename = Turbine.getConfiguration().getString(
                "app.filename", null);

And in your TurbineResources.properties file add a line:

        app.filename = myfile.txt

Hopefully this should get you going...

Regards,
Daniel

On Thu, 29 Jan 2004, Gerry Duprey wrote:

> Howdy,
>
> Can someone explain why the Turbine servlet class (org.apache.turbine.Turbine)
> has a final init() method?
>
> I'd very much like to subclass this so my application can pick up a config
> item or two at startup.  Actually, I have 3 different apps being run as three
> difference servlets (all currently using Turbines servlet handler).  A single
> additional parameter is all I need to tailor each one to a specific actual app
> (I don't intend on adding any code beyond reading that config element and
> providing a getter for it).
>
> Any thoughts?  I guess I could tailor my Turbine source code to not declare it
> final, but if this violates something about the Turbine philosphy, I'd like to
> learn to work in it.
>
> Thanks,
>
> Gerry
> --
> Gerry Duprey
> ________________________________________
> SchoolsOPEN, LLC
> 123 North Ashley, Suite 120
> Ann Arbor, MI 48104
> Phone (877) 483-1944 Ext. 401
> Fax (734) 661-0819
>
> Visit us Online at www.Schools-OPEN.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to