Struts2 request PUT parameter on body <p>i want to add parameter for HTTP Request PUT on the body, but i only can do like this</p> <pre><code>http://localhost:9996/Events/employee/{id}.json?name={name} </code></pre> <p>so how to put name on body? </p> <p>here my controller</p> <pre><code>public class EmployeeController implements ModelDriven&lt;Object&gt;{ private static final long serialVersionUID = 1L; private String id; private String name; private Object model; private EmployeeRepository employeeRepository = new EmployeeRepository(); //GET public HttpHeaders index() { model = employeeRepository.findAllEmployee(); return new DefaultHttpHeaders("index").disableCaching(); } // GET public HttpHeaders show() { model = employeeRepository.getEmployeeById(id); return new DefaultHttpHeaders("show").disableCaching(); } //POST public HttpHeaders create() { Integer empId = Integer.parseInt(id); Employee emp = new Employee(empId, name, "PQR"); employeeRepository.addEmployee(emp); model = employeeRepository.findAllEmployee(); return new DefaultHttpHeaders("create").disableCaching(); } //PUT public HttpHeaders update() { Integer empId = Integer.parseInt(id); Employee emp = new Employee(empId, name, "PQR"); employeeRepository.updateEmployee(emp); model = employeeRepository.findAllEmployee(); return new DefaultHttpHeaders("update").disableCaching(); } //DELETE public HttpHeaders destroy() { employeeRepository.deleteEmployee(id); model = employeeRepository.findAllEmployee(); return new DefaultHttpHeaders("destroy").disableCaching(); } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Object getModel() { return model; } </code></pre>