Ejemplo n.º 1
0
 @Action(
     value = "list",
     results = {@Result(name = "success", location = "/common/json.jsp")})
 public String list() throws Exception {
   try {
     forms = formService.findAllFormsMaxVer();
   } catch (Exception ex) {
     logger.error("Loading forms", ex);
   }
   ActionJsonUtil.putJson(formsToString(forms));
   return SUCCESS;
 }
Ejemplo n.º 2
0
 @Action(
     value = "save",
     results = {@Result(name = "success", location = "/common/json.jsp")})
 public String save() throws Exception {
   if (logger.isDebugEnabled()) {
     logger.debug("Saving meta form: " + form);
   }
   try {
     formService.save(form);
     ActionJsonUtil.putJson(formToString(form));
   } catch (RuntimeException ex) {
     logger.error("Error saving form: ", ex);
     throw ex;
   }
   return SUCCESS;
 }