Kawczynski, David wrote:
I have a shoppingcart-esque form that submits to an payment vendor (EG
paypal) so the user can pay for something I'm offering.
This form needs to contain a hidden element that specifies a URL that
the payment vendor will access after the user pays for it; hitting the
URL is supposed to let me know payment has been rendered.
This URL will need to contain an ID referencing the particular
transaction. I want to encode both the name and value of the ID so
people can't start inserting arbitrary values (potentially marking
unrelated transactions as "paid".)
NOTE: all the non-struts code already exists to support this.
Can anyone help save me lots of time by telling me how I can support
this type of requirement?
Build the URL in the Java code.
<s:hidden name="encodedUrl"/>
I mean, if you have to encode the param name and the ID anyway you might
as well do the whole thing on the Java side.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org