RestFul Webservices @QueryParam Example

To call any service we need to bind the request to the resource method, in order to bind this JAX-RS has provided few parameter types, the data will be taken from these parameters by using the annotaions. Whenever JAX-RS provider receives an http request, it finds an appropriate java method that can service this request.

/***http://localhost:8080/DataBinding/formParam pass the name in the form* request**@param name*@return */@Path("formParam")@POSTpublicString formParam(@FormParam("name")String name){return"Hello world "+ name;}}