Adding popups in spring

Viewed 112

I am writing a code to login from spring. In it I need to show error messages in a popup and redirect to certain page. I'm using a method but it only gives the error on a new page.

Here is the code.

modelAndView.addObject("message", "Wrong Password!!");
modelAndView.setViewName("error");

I need to show this message in a popup and when I click "OK", it needs to redirect to another page. How can I do it?

0 Answers
Related