Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #688
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Lew <noone@lewscanon.com> |
| Newsgroups | comp.lang.java.help |
| Subject | Re: How to dynamically post a variable number of products to Paypal? |
| Date | Wed, 18 May 2011 15:44:58 -0400 |
| Organization | albasani.net |
| Lines | 33 |
| Message-ID | <ir17j3$6dn$1@news.albasani.net> (permalink) |
| References | <e679518b-2df7-4432-9e20-d2b668e50c39@glegroupsg2000goo.googlegroups.com> <ir14ge$v0p$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net Xcf3KfSo3dFV0YNoKUVEiV7fXntelf1PzuMnI+h4Octuc57EpB0Nqphgx6cthhCEDgGPHND+Mb3sVXEJOrTrcnqFbcFWoFRUH4OpaYx/H8bDtmYpAvTrnoIQ7wOaAUXT |
| NNTP-Posting-Date | Wed, 18 May 2011 19:44:35 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="KUcOiqI3iw/ajcxfvJ7n4zo9l9SVuBo9Ygon+PvT7YeOmrqBLajJbWUd6ZsrReTdhQ4BsqUo8Au6U0U4TjWTA9JiilasE2eOouiCcMReYdrZ7W12VkwxI7nfQrblLS0/"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 |
| In-Reply-To | <ir14ge$v0p$1@dont-email.me> |
| Cancel-Lock | sha1:aop1rVAvNqXiLH8Vq1tv2i6rYwc= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.help:688 |
Show key headers only | View raw
On 05/18/2011 02:51 PM, markspace wrote: > On 5/18/2011 1:20 AM, macoln wrote: >> I have some shopping cart code that I took over when I started with a >> company, but unfortunately I'm weak on Java and integrating with >> Paypal. Here is the form that sends data to Paypal when a customer >> checks out of the shopping cart. I can get it to send one product, >> but I would like it to include data on all the products purchased >> from the cart. I am thinking logic:iterate will help me? But then how >> do I increment the "on#" and "os#" when presented with a variable >> amount of products? > > No, logic:iterate is for output, not input. This form outputs HTML to the user > so they can click the accept button. > > To increment variables that you output to the user, change the variables in a > scriptlet, JSP, Struts Action or the like before you send those to the user. > > > <img name="Paypal" src="/images/qujiesuan.gif" class="jiesuan" border=0 > style="cursor: pointer;" onclick="javascript:goPayPal();" /> > > </form> > > This is what sends your information to PayPal. "javascript:goPayPal()" > > Unfortunately I don't know PayPal or JavaScript, you might want to check > PayPal's tech support to understand what that script does. JSF components for input incorporate this type of logic under the hood, typically by appending an index to the specified name. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
How to dynamically post a variable number of products to Paypal? macoln <mr.gaolin@gmail.com> - 2011-05-18 01:20 -0700
Re: How to dynamically post a variable number of products to Paypal? markspace <-@.> - 2011-05-18 11:51 -0700
Re: How to dynamically post a variable number of products to Paypal? Lew <noone@lewscanon.com> - 2011-05-18 15:44 -0400
Re: How to dynamically post a variable number of products to Paypal? Ian Shef <invalid@avoiding.spam> - 2011-05-18 19:23 +0000
Re: How to dynamically post a variable number of products to Paypal? Roedy Green <see_website@mindprod.com.invalid> - 2011-05-19 10:27 -0700
csiph-web