title: Button onClick Call Java Method Until Certain Result
body: <p>I'm completely new to the Spring framework (and most web development in general), but I'm trying to hook up some heavy Java backend code to a new Spring and JSP project. My Controller's <code>handleRequest()</code> is kicking off a long running worker thread before it returns my request.jsp <code>ModelAndView</code> object. After that I'd like to be able to still interface with this Controller from my JSP form to be able to call <code>isThreadDone()</code> in the Controller whenever a button in the form is clicked. Based on three different results, I then redirect accordingly. Is this possible with my current approach? This seems to violate some of the Spring MVC approach, but I can't think of a good way to do this that I can wrap my head around. If anything is way off here, please excuse my ignorance. Thanks in advance.</p>