But why do want to forward it to URL instead of following the struts way. More explanations on your requirement would help you to get the best solution.
I want to redirect my jsp page to any payment gateway from my action in struts by post method. so please let me know How to send URL through action to any site through method post.
If you want to redirect or forward user to some Payment Gateway URL, then why do you require Action , just Provide some buttons, like 'Pay', in <form action="URL_FOR_PAYMENT_GATEWAY"...></form> code..
By the way, Which Payment Gateway you want to integrate ??
OK, then Either, you save "URL + checksum" value in a request object OR Only cheksum value in request object and transfer it to JSP page, and retrieve in Pay button form action, like this
Hope this Helps,
I once again ask you which Payment Gateway , you are integrating with ?
I have an experience of PayPal, Authorize.net and Google Checkout , and neither of this requires the arrangement as you want !