wood burning stoves*
The moose likes Spring and the fly likes Ajax Request - Call different method on Spring controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Ajax Request - Call different method on Spring controller " Watch "Ajax Request - Call different method on Spring controller " New topic
Author

Ajax Request - Call different method on Spring controller

Cj Recto
Greenhorn

Joined: Mar 02, 2012
Posts: 26
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

Joined: Mar 02, 2012
Posts: 26
It was answered here!!!

http://stackoverflow.com/questions/10561116/ajax-request-call-different-method-on-spring-controller
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: Ajax Request - Call different method on Spring controller
 
Similar Threads
Calling a new JSP form a Spring Controller using Ajax
The request sent by the client was syntactically incorrect
using JQuery with Spring 3
Spring mvc and Ajax
org.hibernate.LazyInitializationException