• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

POPUP validation in Spring MVC  RSS feed

 
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.
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!