aspose file tools*
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 Java 8 in Action this week in the Java 8 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:
subject: jax-rs returning to html page that called it
Similar Threads
Exam and WhizLabs!!!
regarding POST method.
Cannot Compile Class error on Tomcat 6.0
using getReader() of ServletRequest
Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41