Does struts2 have a way similar to the SpringMVC annotation @ requiestBody to receive the corresponding json data?

struts2 used to submit data in the form of form forms

Mar.19,2021

as far as I know, struts2 doesn't need to pass parameters like this.
struts2 generally defines global variables in action to accept the parameters passed by the foreground. (remember to give the get,set method)


there happens to be a description of the relevant plug-ins for json processing on the official website. You can refer to the

shared by netizens on the official website and blog Garden.
  1. JSON plugin official website
  2. blog Garden
Menu