コード例 #1
0
  @RequestMapping("/cv")
  public String getCV(Model model, HttpServletRequest request, @RequestParam("uri") String uri) {
    CV cv = dataService.getCV(uri, request.getLocale().getLanguage());
    if (null == cv) {
      model.addAttribute("errorMessage", "CV with uri " + uri + " not found.");
      return "error";
    }

    model.addAttribute("cv", cv);
    return "cv";
  }
コード例 #2
0
 @RequestMapping("/cvs")
 public String getCVs(Model model, HttpServletRequest request) {
   model.addAttribute("cvs", dataService.getCVs(request.getLocale().getLanguage()));
   return "cvs";
 }