1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.ejb; 27 28 29 import javax.servlet.http.HttpServletRequest ; 30 31 import org.apache.struts.action.ActionErrors; 32 import org.apache.struts.action.ActionMapping; 33 34 37 public class EjbSessionForm extends EjbForm { 38 public static final String SESSION_TIME_OUT_DEFAULT = "0"; 40 41 43 46 private String sessionTimeOut = SESSION_TIME_OUT_DEFAULT; 47 49 55 56 public void reset(ActionMapping mapping, HttpServletRequest request) { 57 super.reset(mapping, request); 58 sessionTimeOut = SESSION_TIME_OUT_DEFAULT; 59 this.setAction("apply"); 60 } 61 62 64 public String getSessionTimeOut() { 65 return sessionTimeOut; 66 } 67 68 public void setSessionTimeOut(String sessionTimeOut) { 69 this.sessionTimeOut = sessionTimeOut; 70 } 71 72 83 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 84 ActionErrors errors = new ActionErrors(); 85 numberCheck(errors, "sessionTimeOut", sessionTimeOut, true, 0, Integer.MAX_VALUE); 86 return errors; 87 } 88 89 90 91 } 92 | Popular Tags |