I am converting a client application from java swing to a spring boot application that will run on a server. On the UI of the swing app there is a query interface that users can click cancel if they want to cancel the query. If they click that button it basically does a preparedStatement.cancel(). How can I mimic this same behavior on a UI that is using Spring and thymeleaf?
The problem that I am running into, is that I am unable to find a way transfer the prepared statement from the Java Code to the UI.
Thanks in advance! Brian
You shouldn't be transferring the PreparedStatement
to the ui. Instead, you should either user ajax (or a form submission) to cancel the statement on the server.