Look into Turbine.getConfiguration(); Turbine.getConfiguration().getString(key);
The TurbineResources class is deprecated. Sheldon > Date: Tue, 12 Apr 2011 15:18:13 -0400 > Subject: TurbineResources question (possibly dumb) > From: [email protected] > To: [email protected] > > > Hello! > > I'm looking at finally moving on to Turbine 2.3.3, but ran into a snag > right off the bat. > > The following code used to seem pretty standard (worked in 2.3.2) but is > now broken. What is the replacement for TurbineResources.getString() ? > > I can't find anything on the "migration" page for this, so posing to the > list. > > ---------------------------------------------------------- > if (acl==null) > { > data.setScreenTemplate( > TurbineResources.getString("template.login")); > isAuthorized = false; > } else { > data.setScreenTemplate( > TurbineResources.getString("template.login")); > data.setMessage("You do not have access to this part of the site."); > isAuthorized = false; > } > ---------------------------------------------------------- > > > Thanks, > Jeff Painter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
