Package org.g4studio.core.metatype

Examples of org.g4studio.core.metatype.Dto.toJson()


      outDto.put("success", new Boolean(true));
      outDto.put("msg", "文件上传成功");
      outDto.put("state", "ok");
      outDto.put("aUrl", request.getContextPath() + "/upload/demo/" + fileName);
    }
    write(outDto.toJson(), response);
    return mapping.findForward(null);
  }
}
View Full Code Here


      getSessionContainer(request).setUserInfo(userInfoVo);
    }else {
      outDto.setSuccess(G4Constants.FALSE);
      outDto.put("flag", G4Constants.FAILURE);
    }
    write(outDto.toJson(), response);
    return mapping.findForward(null);
  }
 
  /**
   * 解锁系统
 
View Full Code Here

    if (password.equals(userInfoVo.getPassword())) {
      outDto.put("flag", G4Constants.SUCCESS);
    }else {
      outDto.put("flag", G4Constants.FAILURE);
    }
    write(outDto.toJson(), response);
    return mapping.findForward(null);
  }

}
View Full Code Here

      //todo anything what u want
    }
    Dto outDto = new BaseDto();
    outDto.put("success", new Boolean(true));
    outDto.put("msg", "数据已提交到后台,但演示程序没有将其持久化到数据库.<br>" + request.getParameter("dirtydata"));
    super.write(outDto.toJson(), response);
    return mapping.findForward(null);
  }
}
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.