Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $("#submitButton").click(function(){
- var formData=getFormData();
- var strUrl="http://localhost:8080/Test_ReportingUI/addDb.htm";
- $.post(strUrl, {jsonData: JSON.stringify(formData)},
- function(response){
- if(response.status=='ok') {
- alert("ok");
- } else {
- alert('not OK');
- }
- }, 'json');
- });
- });
- @RequestMapping (value="addDb.htm", method=RequestMethod.POST)
- ModelAndView addEditCustomer()
- {
- ModelAndView modelAndView=new ModelAndView("custDB_setup");
- System.out.println("Hello World..");
- return modelAndView;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement