Is it possible to set/assign value in session using java script?
Basically, I have few links on my JSP page and on click of those links, I need to set a variable in session.
session is server side concept, while javascript plays on browser
Or
The easiest approach is to use a hidden input element bound to a bean property in session scope, and put a JavaScript onclick handler in a commandlink that sets the hidden element's value before submitting the page.