I have created a REST service which retrieves data from the database as per the request made and returns it JSON format.
Now, I need to create a HTML page with a button
Well, all your service does is respond to HTTP requests. So, you need to send one - either
document.location.href = ), orXMLHTTPRequest (aka AJAX) and parse the result, for which JQuery has built-in functionality.
jquery.ajax is a convenient wrapper over that.You don't need to connect you client-side stuff with the Java project in any way - REST is specifically designed to allow them to be independent.