• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Ajax Request - Call different method on Spring controller

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been having a problem regarding, I have a form which has a lot of fields , and each fields retrieves a data depending on the associated button that was clicked.

So, each my button, needs to call an ajax request, then the response will be displayed on the associated field.

I wonder if it is possible to call different method in my spring controller once i clicked on different button?

In other words, I want to make a multiple ajax request, and each request will call different method.

for example this code :


Currently what I can do, is to have one ajax request only.


Please , if anyone could help me on this.I really need this functionality and would greatly appreciate your feedback.
 
Cj Recto
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It was answered here!!!

http://stackoverflow.com/questions/10561116/ajax-request-call-different-method-on-spring-controller
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
CJ. If you are going to post in one location, just post in one location. If that is Stack Overflow, then just keep the question on StackOverflow. If it is here, ask just here. If on either place you don't get a response. Then close the question in the one place, then post to the other.

Because you cross post to different websites it makes it impossible for us to know that you already have an answer to your question and we might spend 10-15 minutes answering it here and it has already been answered elsewhere, therefore wasting someone's time. That really isn't fair to anyone.

I am glad you got your answer. But please don't cross post.

Thanks

Mark
 
There's a city wid manhunt for this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic