Back to our list of happy couples......

package com.helio.website; import java.io.File; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.jcs.engine.control.CompositeCacheManager; import com.helio.content.ContentManager; import com.zaaz.common.StringUtils; import com.zaaz.website.framework.Controller; /** * Extends com.zaaz.website.framework.Controller to provide Helio.com * specific controller functionality, such as redirection to the appropriate * error pages when exceptions are caught. * * @author Zaaz Inc., 2-17-2006 */ public class HelioController extends Controller { public static final long serialVersionUID = 1l; private static final String APPLICATION_ERROR_PAGE = "applicationerror.jsp"; private static final String FILE_NOT_FOUND_PAGE = "filenotfound.jsp"; public void init( ServletConfig config ) throws ServletException { super.init(config); // Set the full path to the w2p.properties file as the // "CONFIG_W2P" property in System props String w2pPropsRelPath = Controller.getProperty("path.w2p.properties"); File w2pPropsFile = new File(webAppRootDir, w2pPropsRelPath); if (w2pPropsFile!=null) { log.info("Setting CONFIG_W2P: " + w2pPropsFile.getAbsolutePath()); System.setProper


Back to our list of happy couples......