Package cn.edu.zju.acm.onlinejudge.form

Examples of cn.edu.zju.acm.onlinejudge.form.LogSearchForm.check()


       
        LogSearchForm searchForm = (LogSearchForm) form;
        if (searchForm.getTimeStart() == null) {
          searchForm.setTimeStart(Utility.toTimestamp(new Date(System.currentTimeMillis() - 24 * 3600 * 1000)));
        }
      ActionMessages errors = searchForm.check();
      if (errors.size() > 0) {
        context.setAttribute("logs", new ArrayList<AccessLog>());
            return handleFailure(mapping, context, errors);
      }
       
View Full Code Here


        LogSearchForm searchForm = (LogSearchForm) form;
        if (searchForm.getTimeStart() == null) {
          searchForm.setTimeStart(Utility.toTimestamp(new Date(System.currentTimeMillis() - 24 * 3600 * 1000)));
        }
        ActionMessages errors = searchForm.check();
        if (errors.size() > 0) {
            context.setAttribute("logs", new ArrayList<AccessLog>());
            return this.handleFailure(mapping, context, errors);
        }
        int page = Utility.parseInt(context.getRequest().getParameter("page"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.