JAX-RS with Jersey: Passing form parameters to PUT method for updating a Resource
问题 I have to update a Person record having firstName and lastName. User should be able to change it from html form and on submit it should be updated. Here is my code. @PUT @Path("/{userId}") public Response updatingResource(@FormParam("firstName") String firstName, @FormParam("lastName ") String lastName , @PathParam("userId") String userId){ System.out.println(firstName); System.out.println(lastName); return Response.ok().build(); } the SOP statements prints null. I have been using Mozilla