How to make a REST call in JSP?
I want to ask a question about the JSP and REST call. I am making a JSP page and need to mark a REST call and receive the REST call in JSON format. The JSP (.war) is running on the tomcat server. Like the following:
JSP(REST call) -> server -> JSON format(REST respond)
However, I don't know how to make the call and response. Can anyon开发者_C百科e help me? Thank you.
I would suggest using jQuery and ajax to implement the functionality in javascript
http://api.jquery.com/jQuery.getJSON/
精彩评论