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

后端 未结 3 1404
北海茫月
北海茫月 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:05

    The problem in your Action class MeetingRecordAction, method updateAttendeesRecord is private, it should be public

    public String updateAttendeesRecord() {
        meetingRecordService.updateAttendeesRecord(attendeesListMethod(), meeting_record);
        setMyMsg("Update Successful!");
            return SUCCESS;
    }
    

提交回复
热议问题