title: Display message in a toastr from controller in Spring
body: <p>I am using a toast to display the success message on my jsp page and I would like to ask if there is a way to actually display the userName which is set in a session in my controller in the toast along with the success message. 
   This is my toast :-</p>
  
  <pre><code>toastr.success('Successfully', 'Registered',{timeOut:2000});
  </code></pre>
  
  <p>My controller has the following line of code to set the userName:-
      <code>session.setAttribute("userName",userName);</code></p>
  
  <p>where userName has fullName as its attribute.</p>