title: Render attributes after they are deleted. Spring MVC, Hibernate
body: <p>Good day folks. I have DAO method to delete some files. </p>
  
  <pre><code>@Override
      public void deleteFormDescription(Date formDate, String institutionName) {
  
          Session session = sessionFactory.getCurrentSession();
  
          Integer dateId = fetchDateId(formDate);
          Integer institutionId = fetchInstitutionId(institutionName);
  
              if(dateId == null &amp;&amp; institutionId == null) {
                  throw new UnexpectedRollbackException("Transaction will roll back because, dateId: " + dateId + " and institutionId: " + institutionId);
              }
  
          try {
  
              FormDescription formDescription = (FormDescription)session.createCriteria(FormDescription.class, "formDescription")
                                                                          .createAlias("formDescription.institutions", "institution").add(Restrictions.eq("institution.institutionId", institutionId))
                                                                                      .createAlias("formDescription.formDate", "formDate").add(Restrictions.eq("formDate.dateId", dateId)).uniqueResult();
              session.delete(formDescription);
              session.flush();
  
          } catch(RuntimeException e) {       
              throw new UnexpectedRollbackException("Transaction will roll back because " +
                                                                  " method deleteFormDescription(Date formDate, String institutionName) could not delete an FormDescription");
          }
  
      }
  </code></pre>
  
  <p>And in my Controller  I have:</p>
  
  <pre><code>@RequestMapping(value="/deleteprocessing", method=RequestMethod.GET)
  public String deleteProcessing(@RequestParam String particularDate,
                                 @RequestParam String institutionName) throws Exception {
  
              educationWebService.deleteFormDescriptionService(dateConvertation(particularDate), institutionName);    
  
      return "redirect:/delete";
  }
  </code></pre>
  
  <p>I need this method render on JSP page which files his delete. Is it possible to do this? Thank you guys.</p>