I have a button in a JSP page:
<button type="button" onclick="">Click me </button>
I want to perform the following jsp code:
<% session.setAtrribute("status","guest"); %>
when I press the button.
Is it possible to use JSP code on a button click and if yes how?