• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax with Spring MVC

 
Kashif Mughal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying with my little knowledge to update the Customer Details onChange event of list, let me tell you the way i am doing it.

I am using simpleFormController that loads the list values, When i select any of the customers from the list i call javascript function that does AJAX process, in this process I am passing URL that invoke the same contoller again. Infact, This is the point where i am confused as i need to see the customer details on same page, But they are not coming on the page but definately coming from DB.

I am wondering if i am doing it right?

code is as follow;


 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know Ajax, but I do know that Spring has Spring Javascript which makes doing Ajax calls easy in Spring MVC. Maybe it might be best to use it, rather than trying to re-invent the wheel.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic