Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 26388 invoked from network); 27 Mar 2006 19:05:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Mar 2006 19:05:05 -0000 Received: (qmail 97568 invoked by uid 500); 27 Mar 2006 19:05:03 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 97546 invoked by uid 500); 27 Mar 2006 19:05:03 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 97533 invoked by uid 99); 27 Mar 2006 19:05:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 11:05:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.130.133.69] (HELO assei2bl6.telenet-ops.be) (195.130.133.69) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 11:05:02 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by assei2bl6.telenet-ops.be (Postfix) with SMTP id 3059FF00B1 for ; Mon, 27 Mar 2006 21:04:41 +0200 (CEST) Received: from [213.118.112.66] (dD5767042.access.telenet.be [213.118.112.66]) by assei2bl6.telenet-ops.be (Postfix) with ESMTP id 16B48F00C0 for ; Mon, 27 Mar 2006 21:04:41 +0200 (CEST) Message-ID: <44283702.80304@pandora.be> Date: Mon, 27 Mar 2006 21:03:30 +0200 From: Sven Boden Reply-To: list123@pandora.be User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: JPetStore - Using billState property in Cart.java References: <20060327184620.81117.qmail@web38415.mail.mud.yahoo.com> In-Reply-To: <20060327184620.81117.qmail@web38415.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N If I understand you correctly, this has been discussed before. It's because of "nesting statements". Hard to explain, but you use 1 query to fill in a bean in order to run a query to fill in another bean, and that doesn't work. I'm sure someone else can give a better explanation for it. If I recall correctly the solution is to use a second instance of the SqlMapClient. Else show us the simplest form of what you want to do... preferably using hsql, but Oracle will also do ;-) Regards, Sven Mike Wilson wrote: >Hello, > >In the Cart.java I'm trying to grab the users' billState value (in Order.java) so I can use it as a qualifier for which tax rate is applied. > >I am trying to set the account.billState value in Order.java that I can use in the Cart.java. This is so I can calc different tax rates based on different states and display the result on the checkout pages. However, it doesn't seem like I can do this. I've tried several things besides this, adding a reference to account.billState in the Cart.java or adding an initCart method and grabbing the account.billState that way (like the initOrder in Order.java). Seems like unless I hard code a value in my totalTax method in Cart.java, I get a null pointer exception. Hope this makes sense and someone can help. > >Thanks in advance, >MW > >--------------------------------- >New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates. > >