This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Ajax with Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Ajax with Spring MVC" Watch "Ajax with Spring MVC" New topic

Ajax with Spring MVC

Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44

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;

Thanks in Advance,
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Ajax with Spring MVC
It's not a secret anymore!