I\'ve created a page which asks user to fill some form fields and when he submits, the form is sent to a Restful method which you can see below:
@POST @Path(
Create a URI using javax.ws.rs.core.UriBuilder that maps the parameters and other data you want to preserve. Then use Response.temporaryRedirect to return a redirect to the client and pass it the URI you’ve built.
javax.ws.rs.core.UriBuilder
Response.temporaryRedirect