Call Popup model from Controller response in JAVA

Are you saying that you want to prevent the form submission from reloading the page?

For that you’ll need to submit the form with AJAX and return JSON from the server rather than HTML.