Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

POPUP validation in Spring MVC

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I once met a man from Nantucket. He had a tiny ad
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic