I don't think Spring beans are stored in HttpSession as attributes. Still you can try by adding
session scope to your Spring bean, something like this:
I don't think this will work either but you can give it a try. Also I don't understand why you want to create a JdbcTemplate as a session bean. To make this work you might have to write a SessionListener and set the Spring beans as HttpSession attributes in that listener class...