File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call the spring 3 controller's method from javascript code

 
peeush agarwal
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi all!
Actually I m new to Javascript, AJAX, JQuery . So i just want to know that if I have a jsp page with some students list and they have option(link) for delete or edit.
I want that if user clicks edit, then my javascript code should requests controller method to populate the corresonding student's data and response it to javascript code from where the JS script will open a new window to show the corresponding student's data and ables the user to edit the information and the submit it to be changed.
Please reply to it ASAP.

Thanks in advance!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To open a new window from a link, use the target="_blank" attribute on the link.
 
Miku Ranjan
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can use ajax method to call the spring controller and get your data back in that ajax method itself.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic