In the payment section of our website, I receive the payment page URL and payment ID from the bank. After this I have to redirect the client browser to the bank payment using Post User, Post method, not GET. Just note that the bank payment page URL is offsite, it is not connected to our server.
Let me know JSF 1.2 & amp; Did not find a smart solution in The spring which handles the problem is to create a simple JSF page with a trivial solution of the following body (by javascript):
& lt; Body onLoad = "onLoadEvent ();" & Gt; & Lt; Form action = "& lt;% = url%>" Method = "post" name = "form1" & gt; & Lt; Input type = "hidden" name = "payment id" value = "& lt;% = payment id%>" / & Gt; & Lt; / Form & gt; & Lt; Script language = "javascript" & gt; Function Onload Avent () {document.form1.submit (); } & Lt; / Script & gt;
Can you give me better solutions using the Javasvarative API, JSF and Spring API?
In my opinion, in the controller I have a method that pays for payment () where I will take the object object from ServletContext (or FacesContext). But after that I do not know how to use the post method by using the POST method.
P. s. It seems that this is a more general question. I got a similar question for ASP.
This is nothing with JSF, Spring, PHP, ASP or any other server-side technology .
The only channel of communication between the server and the client is the HTTP header and there is no headers that will force a modern browser to reliably redirect via mail. The only option is with a hidden field activated by Javascript.
Comments
Post a Comment