This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes If calling Struts Action from Jquery Ajax Call, should the result tag in struts config be blank? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "If calling Struts Action from Jquery Ajax Call, should the result tag in struts config be blank?" Watch "If calling Struts Action from Jquery Ajax Call, should the result tag in struts config be blank?" New topic
Author

If calling Struts Action from Jquery Ajax Call, should the result tag in struts config be blank?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
I am calling Struts 2 Action from Jquery AJAX call using the below syntax:




I want to know what should be written in the struts.xml configuration file result type in his case?

I tried omitting the result tag (I am returning null from struts Action)but it gave error message saying no result defined for type success.

Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: If calling Struts Action from Jquery Ajax Call, should the result tag in struts config be blank?
 
Similar Threads
jQuery and JSF - NEWBIE question
struts2 (2.1.8.1) json result type problems
AJAX with Struts
How to Populate TextField result in another Textfield on same page..using struts2 jquery AJAX
Struts / Ajax question