wood burning stoves 2.0*
The moose likes Web Services and the fly likes jax-rs returning to html page that called it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "jax-rs returning to html page that called it" Watch "jax-rs returning to html page that called it" New topic

jax-rs returning to html page that called it

Keith Spriggs

Joined: Jul 19, 2012
Posts: 18
Hi Guys,
Need a helping hand.
I'm trying to strech my limits I have no problem doing the following in javascript, but I'm trying to push my self into learning some REST.
What i'm trying to do is create a html interface that sends two numbers into a rest web services and then performs a calculation on those values.
There is no problem with the service itself and currently the result is displayed on a new web page.
What I'm trying to do is to get the result from the web service back onto the same page as the one the called it.
here is the code

Here is the html

and here is the rest or jax-rs

it's configured through netbeans and glasssfish server
I would appreciate any help
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
Ajax is the answer.

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
I agree. Here's the link: http://aspose.com/file-tools
subject: jax-rs returning to html page that called it
Similar Threads
Cannot Compile Class error on Tomcat 6.0
Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41
Exam and WhizLabs!!!
using getReader() of ServletRequest
regarding POST method.