|
| How can I pass a generated value URL string to my JSP? |
 |
Tue, 20 Mar 2007 08:41:38 -070 |
Hi,
I wanted to pass the URL that I generated from my JPF by requesting this value
to my JSP and redirect the page to this generated URL.
Now I want to know what sample code should I put on my JSP.
Thanks.
Below is a sample JPF:
/**
* This method does payment initialization with Knet and direct
* customer to Knet payment page
* @jpf:action
* @jpf:forward name="success" path="success.jsp"
*/
protected Forward buy(BuyForm form)
{
.......
............
System.out.println("PaymentInit Sent and Response
Received.");
....
....
// Get results
String payURL = pipe.getPaymentPage();
return new Forward("success");
}
As you can see on this code, Ihave a String URL stored on payURL, the sample
value of this string is
"https://www.paymentsample.com/gateway/payment.jsp?paymentID=12345678"
This will be the redirection URL that my success my JSP will load.
Could someone please give me an idea on how to do such response redirect action
on JSP with my JPF.
Thanks.
--
|
| Post Reply
|
|
|
|
|
|
|
|
|
|