On Tue, 30 May 2000, Steve B. wrote: > Lately I have been trying to dabble in the Jetspeed code. I have picked small/simple >tasks which would help me understand Jetspeed/Turbine. > > My latest attempt was to create a GenericTopNavigation and GenericBottomNavigation. >In the past, I have edited the Turbine/navigations/*Navigation.class files to display >my own Logo and text. I thought I would take this a step forward and read the image >file and text entries from JetspeedResources.properties. While getting values from >TurbineResources seems pretty straight-forward, I cannot understand the format for >getting values from JetspeedResources.properties. Any hints for how I get the string >values: > > site.header.logo.url = images/myLogo.gif > site.banner.text = Welcome to eToolbelt.net! > ... > > BTW - In case it matters, I am using the latest CVS with Tomcat 3.1 > > Thanks! > > Steve B. > > +1 on this idea Steve... As a follow-up, I suggest you look at the following classe in Jetspeed org.apache.jetspeed.util.JetspeedResources Also, look at the parent class - org.apache.turbine.services.resources.GenericResources. The javadocs should be enough, but if you are feeling adventurous look at the code ;)... The resources are Singleton Object Oriented Patterns, this means that only one instance of JetspeedResources will ever exist in the application. You get the instance by calling the static method of the JetspeedResources class called getInstance(). Let me know how it goes. If you get a diff post it to the list!!! Jeff Prickett [EMAIL PROTECTED] -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
