How to send JSON data via POST (ajax) and receive json response from Struts 2 action

后端 未结 3 1398
北海茫月
北海茫月 2020-12-22 12:19

I am trying to understand how to use JSON and in the process I\'m trying to get a JSON response from Struts2 action and display an alert for the response. For this I\'m usin

3条回答
  •  旧巷少年郎
    2020-12-22 13:07

    In the action configuration you should not override the default configuration from json-default package just extend it and all. Also json-default extend a struts-default, so multiple inheritance is not required.

    
      
        
      
    
    

提交回复
热议问题