Home  >  Forum  >  Web Services
Post New Query

Difference between JAX-RS @QueryParam and @FormParam

joined on
March 27,2014
Asked on March 10,2015
What is difference between JAX-RS @QueryParam and @FormParam.
I am new to REST web service. Can we use together?
joined on
October 10,2013
Replied on March 10,2015

In REST Service, JAX-RS provides @QueryParam and @FormParam both for accepting data from HTTP request. An HTTP form can be submitted by different methods like GET and POST.

@QueryParam : Accepts GET request and reads data from query string.


@FormParam: Accepts POST request and fetches data from HTML form or any request of the media type application/x-www-form-urlencoded.


Write Answer

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us