Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jax-rs returning to html page that called it

 
Keith Spriggs
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax is the answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic