A nice feature of JAX-RS is the interactions with the web forms. The parameters of a form that point to a REST service can be automatically imported in the service without too much code to write. Take a look at this simple HTML form code:
<html>
<body>
<h1>JAX-RS @FormParam Example</h1>
<form action="myjaxrs/simple/form" method="post">
<label for="data">Data: </label>
<input id="data" type="text" name="data" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
This form points to the myjaxrs/simple/form REST service represented by the service:
@Path("/simple")
@Stateless
public class SimpleService {
...
@POST
@Path("form")
@Produces...