Struts 1 redirect from action to action with parameters as POST request

痴心易碎 提交于 2019-12-06 09:56:35

You can't, it is not a Struts problem. It is how HTTP is designed. When a browser is redirected, it perform a GET request. You cannot ask the browser to do a POST instead. The only way would be to add some Javascript to send the request.

Or you can also ask Struts to do an internal redirection but it will be hidden to the client and the url will not change.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!