You'll need to call the server to set anything in session, either via Ajax or a form submission. As Bear says it'll be a good idea to understand the various life cycles involved in web apps before going too much further.
Joined: Apr 22, 2010
I got it. I will have to try AJAX. In my jsp I don't have any form submission. There is a href link that is redirected to a controller class. But before going to the controller I should have this value set.