Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
Author

jax-rs returning to html page that called it

Keith Spriggs
Greenhorn

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
Keith
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 614
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