Sorry -- I wasn't clear. When I said "all the non-struts code already exists", I meant that the code to look up a transaction based on encrypted names and values exists.
I don't have something that will receive that request and pass the URL data to along. I was hoping to use struts2 for that. AFAIK, the ActionSupport subclass would have to have to encapsulate properties whose name is not known at compile-time. So is there a way to have struts2 collect any and all properties in a request, instead of declaring each named value as a POJO in that class? Thanks, -dave -----Original Message----- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Thursday, February 05, 2009 11:29 AM To: Struts Users Mailing List Subject: Re: [S2] Dynamic form variable names 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 Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org