I'm trying to set 2 variables in 1 JSP:
session.setAttribute("name", aName);
session.setAttribute("amount", amount);
response.sendRedirect("transferSuccess.jsp");
And trying to access this information from another JSP:
<h1>
   Transfer successful! Customer 
   <% session.getAttribute("name");%> 
   received $
   <% session.getAttribute("amount");%>.
</h1>
what's the best way to do this? My many google searches have either not worked or left me confused.
 
     
     
    