且构网

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

HTML表单方法POST调用java servlet的doGet方法

更新时间:2023-12-04 14:32:37

这可能是由于重定向造成的吗?如果/ post2重定向到/ post2 /,您的POST请求将转换为GET,丢失所有发布数据。

Could this be due to a redirect? If "/post2" redirects to "/post2/" your POST request would be transformed into a GET, losing all post data.

尝试直接访问/ post2你的浏览器,看看会发生什么。

Try accessing "/post2" directly in your browser and see what happens.