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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -