1 5 6 package org.infohazard.maverick.ctl; 7 8 import org.infohazard.maverick.flow.Controller; 9 import org.infohazard.maverick.flow.ControllerContext; 10 import javax.servlet.*; 11 12 18 public abstract class Throwaway2 implements Controller 19 { 20 23 public static final String SUCCESS = "success"; 24 25 28 public static final String ERROR = "error"; 29 30 32 private ControllerContext controllerCtx; 33 34 41 public final String go(ControllerContext cctx) throws ServletException 42 { 43 try 44 { 45 this.controllerCtx = cctx; 46 47 return this.go(); 48 } 49 catch (Exception ex) 50 { 51 throw new ServletException(ex); 52 } 53 } 54 55 58 protected abstract String go() throws Exception ; 59 60 63 protected ControllerContext getCtx() 64 { 65 return this.controllerCtx; 66 } 67 } | Popular Tags |