Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1 & JQuery & Ajax

 
Fred Artes
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can you give me an example of code using Struts 1 & JQuery & Ajax ?

Without JQUery I have this



Thanks
 
Karthik Jayachandran
Ranch Hand
Posts: 91
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working with jQuery is so damn easy, you don't need this much code.

here's a small sample for your code,



The resulting data will be handled by method called 'showAgency()'.



these might work.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's nothing Struts-specific when using jQuery and Ajax--only the Ajax endpoint will have anything to do with Struts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic