1 7 8 package org.enhydra.jivan.test; 9 10 import com.lutris.appserver.server.*; 11 import com.lutris.appserver.server.httpPresentation.*; 12 import com.lutris.appserver.server.session.*; 13 import com.lutris.util.*; 14 15 import java.io.File ; 16 21 public class JivanExample extends StandardApplication { 22 23 public static String rootPath = null; 24 25 29 public void startup(Config appConfig) throws ApplicationException { 30 super.startup(appConfig); 31 try { 32 String temp = appConfig.getConfigFile().getFile().getAbsolutePath(); 33 int position = temp.lastIndexOf(File.separator); 34 rootPath = temp.substring(0,position); 35 } catch (Exception e) { 36 rootPath = ""; 37 } 38 } 41 public boolean requestPreprocessor(HttpPresentationComms comms) 42 throws Exception { 43 return super.requestPreprocessor(comms); 44 } 45 46 54 public String toHtml() { 55 return "This is <I>JivanExample</I>"; 56 } 57 } 58 59 | Popular Tags |