How do I pass the value of a variable declared in a jsp to a js file to modify it and pass it back to the jsp.
jsp file
<body>
<%! int contador = 3; %>
<div class = "container">
<div class="page-header page-header2 text-left">
<img src="resource/img/logo.png" class="img-responsive " alt="Responsive image"/>
</div>
I need to change that value of the counter variable from a javaScript file with a jquery function