且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过一个javascript变量一个Java servlet?

更新时间:2023-12-04 16:13:16

现在的问题是你有方法在你的AJAX和你正在试图让它在的doGet()你的servlet的。

The problem is you have the post method in your ajax and you are trying to get it in the doGet() of your servlet.

使用的doPost 或改变方法获取在阿贾克斯。

Use doPost or change the method to Get in your ajax.