title: how to show error msg in my jsp page as a popup alert
body: <p>I am using java Spring MVC,i want show this msg for user..
  This my part of controller</p>
  
  <pre><code>@RequestMapping(value="/DeleteTeam", method=RequestMethod.POST)
      public String editDeleteRecodes(@ModelAttribute NewTeams newTeams, BindingResult result, @RequestParam String action, Map&lt;String, Object&gt; map){     
          Teams teams = new Teams();
          teams.setTeamID(newTeams.getTeamID());
          try{
              teamService.delete(teams);
          }catch (DataIntegrityViolationException ex){
              map.put("error", "Frist Delete Releases");
  
          }
  
          return "redirect:/";
  
  
      }
  </code></pre>