I am using bPopup Jquery plugin for popup window in my Spring MVC project, this is great but I got stuck help me.
Here is the scenario, * When a button in a page is clicked, the pop up window is opened and the required details are entered into the fields. * when submit button is clicked in popup window, form validation is performed and then values are entered into database; but if the entered field have any error( i.e phone number is entered in place of email address) the pop up window must open to show the error.
But the popup window is not reopened to show the error.
Here is my code
My
Jsp file:
My Model class .java file
My DAO Implementation class .java file
My Controller class .java file
My web.xml
My mvc-dispatcher-servlet.xml
Insertion and form validation operations are working fine but if validation fails for entered information, then the popup window must reload again with error message.
How to achieve this in spring MVC. Thanks in advance.