title: Multiple flash messages in Spring MVC
body: <p>In Spring MVC 3.1 I can do:</p>
  
  <pre><code>@RequestMapping(value = "{id}/edit", method = RequestMethod.POST)
  public String update(Category category, @PathVariable Integer id, 
      @RequestParam("childrenOrder") int[] childrenOrder,
      RedirectAttributes redirectAttributes) {
  
      if (!id.equals(category.getCategoryId())) throw new IllegalArgumentException("Attempting to update the wrong category");
      categoryMapper.updateByPrimaryKey(category);
      redirectAttributes.addFlashAttribute("flashSuccessMsg", "Update Successful");  //ADD FLASH MESSAGE
      return "redirect:/admin/categories.html";
  }
  </code></pre>
  
  <p>And then show the flash message in the view:</p>
  
  <pre><code> &lt;p&gt;${flashSuccessMsg}&lt;/p&gt;
  </code></pre>
  
  <p>But I would rather have a list of flash messages, and then iterate over this in the view.  </p>
  
  <p>Is this possible?</p>
  
  <p>If I do: <code>redirectAttributes.addFlashAttribute("Update Successful");</code>
  i.e. I don't name the flash message, how do I then retrive it in the view?</p>