Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $(document).ready(function(){
  2. $("#submitButton").click(function(){
  3. var formData=getFormData();
  4. var strUrl="http://localhost:8080/Test_ReportingUI/addDb.htm";
  5. $.post(strUrl, {jsonData: JSON.stringify(formData)},
  6. function(response){
  7. if(response.status=='ok') {
  8. alert("ok");
  9. } else {
  10. alert('not OK');
  11. }
  12. }, 'json');
  13. });
  14. });
  15.  
  16. @RequestMapping (value="addDb.htm", method=RequestMethod.POST)
  17. ModelAndView addEditCustomer()
  18. {
  19. ModelAndView modelAndView=new ModelAndView("custDB_setup");
  20. System.out.println("Hello World..");
  21.  
  22. return modelAndView;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement