@GetMapping("/activate/{code}") public String activate(ModelMap model, @PathVariable String code) { boolean isActivated = userService.activateUser(code); if (isActivated) { model.addAttribute("message", "User Successfully activated"); System.out.println("Successfully"); } else System.out.println("Activation code not found"); model.addAttribute("message", "Activation code not found"); return "verificationPage"; } 

this method opens a page when clicking on a link in which I want the value of the message attribute, I did not add the servlet and jsp, how can I display it? My html is empty

  • Without a TemplateEngine of the JSP type - not a Programmer
  • and how can I use it? how can I change the method so that the servlet will work and jsp is called? - Samir Shahmuradly

0