You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Phillip Qin <pq...@shareowner.com> on 2003/04/28 23:28:37 UTC
struts and card processing
Our Visa/MasterCard processing provider requires merchants either POSTs or
redirects order data to their URL. What I do is
- After client clicks "Submit" button on my order entry page, a struts
Action class is executed to do some pre-processing (validate credit card
number, expiration date etc.)
- This action class then calls response.sendRedirect(encodedUrl) to send
data to the url (a GET).
The problem that I have is, after appended all the parameters, this url
is longer than 254 characters. Once the action class calls
response.sendRedirect, I got a "resource not available" error.
I don't want to create another jsp page to let client click "Submit" to
POST the preprocessed data to the url. Is there any alternatives? Maybe
a Servlet filter?
Another question is I tried to put a wait page during the credit card
processing. On this jsp page, I display "please wait while we are
processing your order......" and <logic:redirect
url="post.do"/>. But this redirect never
redirects to any action or page. Does any one have any idea? I don't ant
to use JavaScript.