开发者

How to make a REST call in JSP?

开发者 https://www.devze.com 2023-01-18 09:45 出处:网络
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

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号