Spring: redirect to home page once thread finishes its execution -
i working on project in spring in there log in page , many other pages user can go after logging in correct credentials. when user puts in correct credentials , allowed go ahead spawn thread home controller (a requirement of trying achieve project). since thread continues execution , controller returns jsp user. thread might take invariable time finish when user has redirected home page. achieve thought need call controller thread once over. but, not change view.
can please me this?
thank in anticipation.
you doing asynchronous job, u lost connection, committed response. there no such thing calling controller thread.
one thing u can do, u can poll server client side specific time intervals, ask whether thread has done job, if redirect user desired page.
Comments
Post a Comment