[英]Redirect to external website with post parameters in JBoss Seam?
I have to integrate the Moneybooker Payment Service to an existing Seam Application. 我必须将Moneybooker支付服务集成到现有的Seam应用程序中。 Regarding to the documentation, I have to pass parameters to moneybookers via POST.
关于文档,我必须通过POST将参数传递给moneybookers。
My question is, how to pass parameters via POST to an external website? 我的问题是,如何通过POST将参数传递给外部网站? I know I am able to redirect to an external website via "FacesContext.getCurrentInstance().getExternalContext().redirect("URL")", and I can pass parameters via get to this website.
我知道我可以通过“FacesContext.getCurrentInstance()。getExternalContext()。redirect(”URL“)”重定向到外部网站,我可以通过访问此网站传递参数。 How to do this with a POST?
如何使用POST执行此操作?
It would make sense to me to do this with a form with invisible fields as parameters, but I am not able to redirect to an external URL via forms. 使用带有不可见字段作为参数的表单来执行此操作是有意义的,但我无法通过表单重定向到外部URL。
Thanks for any suggestions :) 谢谢你的任何建议:)
使用普通的HTML <form>
元素。
<form action="http://moneybooker.com" method="post">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.