1 9 package calculator; 10 11 import com.lutris.appserver.server.*; 12 import com.lutris.appserver.server.httpPresentation.*; 13 import com.lutris.appserver.server.session.*; 14 import com.lutris.util.*; 15 16 27 public class CalcApp extends StandardApplication { 28 29 32 public long buttonsPushed = 0; 33 34 38 public void startup(Config appConfig) throws ApplicationException { 39 super.startup(appConfig); 40 } 43 public boolean requestPreprocessor(HttpPresentationComms comms) 44 throws Exception { 45 return super.requestPreprocessor(comms); 46 } 47 48 54 public String toHtml() { 55 return "This is a sample Enhydra Application. " + buttonsPushed + 56 " buttons have been pushed so far."; 57 } 58 59 } 60 61 | Popular Tags |