1 package org.itracker.web.util; 2 3 import org.itracker.services.ITrackerServices; 4 5 /** 6 * This class gets access to ITracker services layer from a servlet context 7 * Since actions already have it done in the top level ITrackerAction (ItrackerBaseAction), this is mostly 8 * to be used in JSPs. 9 * <p/> 10 * Marky: And that means that this is somehow deprecated because we 11 * want to move all logic code except Taglibs from the JSPs to the Actions. 12 * <p/> 13 * TODO In fact this shouldn't be needed / used, ITracker's JSP have way too much java code 14 * 15 * @author ricardo 16 */ 17 public class ServletContextUtils { 18 19 private static ITrackerServices itrackerServices; 20 21 public static void setITrackerServices(ITrackerServices services) { 22 itrackerServices = services; 23 } 24 25 public static ITrackerServices getItrackerServices() { 26 return itrackerServices; 27 } 28 29 } 30