@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"; }
@RequestMapping("/cvs") public String getCVs(Model model, HttpServletRequest request) { model.addAttribute("cvs", dataService.getCVs(request.getLocale().getLanguage())); return "cvs"; }