Do you mean immediately when the user clicks something, or do you mean after the data is submitted to the server?
If the former, then no.
JSP runs on the server in order to format the HTML page to send to the browser. Once sent, any reaction to user input must take place on the client using HTML and JavaScript.
If the latter, then that's the realm of data processing and should be taking place in a
servlet, not in a JSP.