1 package hero.struts.actions; 2 3 import java.io.IOException ; 4 import javax.servlet.ServletException ; 5 import javax.servlet.http.HttpServletRequest ; 6 import javax.servlet.http.HttpServletResponse ; 7 import org.apache.struts.action.Action; 8 import org.apache.struts.action.ActionForm; 9 import org.apache.struts.action.ActionForward; 10 import org.apache.struts.action.ActionMapping; 11 import javax.naming.Context ; 12 13 14 21 public abstract class AbstStrutsActionBase extends Action 22 { 23 24 27 28 protected static final String INITIAL = "initial"; 29 protected static final String SUCCESS = "success"; 30 protected static final String FAILURE = "failure"; 31 protected static final String ERROR = "error"; 32 protected static final String LOGIN = "login"; 33 protected static final String NEWUSER = "newuser"; 34 protected static final String CONFIRM = "confirm"; 35 protected static final String ACTIVITY = "activity"; 36 protected static final String EDITACTIVITY = "editactivity"; 37 protected static final String PROJECT = "project"; 38 protected static final String ADMIN = "admin"; 39 protected static final String USER = "user"; 40 protected static final String ADDPROJECT = "addproject"; 41 protected static final String CLONEPROJECT = "cloneproject"; 42 protected static final String PROJECTDETAILS = "projectdetails"; 43 protected static final String USERNOTLOGGED = "usernotlogged"; 44 protected static final String WORKLIST = "worklist"; 45 protected static final String CONFIGPROJECT = "configproject"; 46 47 protected Context jndiContext = null; 48 49 50 53 public AbstStrutsActionBase() 54 { 55 } 56 57 66 public abstract ActionForward perform(ActionMapping mapping, ActionForm form, 67 HttpServletRequest request, HttpServletResponse response) throws IOException ,ServletException ; 68 { 69 } 70 71 72 } 73
| Popular Tags
|