How to call a java method from jsp by clicking a menu in html page?

后端 未结 2 990
滥情空心
滥情空心 2020-12-07 05:52

I wrote a server program in java but in order to give an interface with web i want to access java method in jsp when certain menu button is clicked. How can i do this?

2条回答
  •  生来不讨喜
    2020-12-07 06:16

    you cannot do this directly because JSP is server side and html is client side. However, it can be accomplished via AJAX. http://en.wikipedia.org/wiki/Ajax_(programming)

提交回复
热议问题