Calling Java Method from html without using a servlet

后端 未结 3 708
借酒劲吻你
借酒劲吻你 2021-01-27 12:59

I have my index.html that has a certain view, and I want to update this view (without redirecting or reloading the page) by calling a java method, that consumes a w

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-27 13:53

    I would use jquery and do ajax calls back to the server. Once the ajax call is finished, you can then update your index.html file using javascript and not have to reload the page.

提交回复
热议问题