项目作者: AmareshB

项目描述 :
This project is an example that depicts exchange of JSON data between Server and client
高级语言: Java
项目地址: git://github.com/AmareshB/Simple-REST-Based-Communication.git


Simple-REST-Based-Communication

This project is a simple example for the exchange of JSON data between Server and client

After Forking/downloading this project, run the project using Web Server.
Server.java is the server which hosts the functions .
client.jsp is a Client which calls the functions in Server based on the method of request and type of response .

Running the Project .
In the Url append /rest/server —-> for GET Method,
/rest/server/postcheck ——> for POST Method.

Now copy this URL,
Change the value of url in readJson.js to this new copied value.
Now run client.jsp , this sends a simple string to the server and receives a JSON Response .

You are good to go now!