Skip to content
Advertisement

Using AngularJS for Ajax POST in Struts 1

I’m trying to send Ajax POST using Struts action form.

I’ve succeeded to create this kind of call using jQuery.

ActionForm:

JavaScript

Action:

JavaScript

jQuery Ajax POST (working):

JavaScript

AngularJS Ajax POST (not working):

JavaScript

for some reason AngularJS doesn’t like the way I’m sending the ActionForm data.

Advertisement

Answer

It is not data that you should use, but params :

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement