Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 70329 invoked from network); 8 Jul 2003 06:29:14 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jul 2003 06:29:14 -0000 Received: (qmail 686 invoked by uid 97); 8 Jul 2003 06:31:50 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 679 invoked from network); 8 Jul 2003 06:31:49 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Jul 2003 06:31:49 -0000 Received: (qmail 68223 invoked by uid 500); 8 Jul 2003 06:28:51 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 68212 invoked from network); 8 Jul 2003 06:28:51 -0000 Received: from 205-158-62-67.outblaze.com (HELO spf13.us4.outblaze.com) (205.158.62.67) by daedalus.apache.org with SMTP; 8 Jul 2003 06:28:51 -0000 Received: from 205-158-62-68.outblaze.com (205-158-62-68.outblaze.com [205.158.62.68]) by spf13.us4.outblaze.com (Postfix) with QMQP id 087BC181E732 for ; Tue, 8 Jul 2003 06:29:02 +0000 (GMT) Received: (qmail 39222 invoked from network); 8 Jul 2003 06:29:01 -0000 Received: from unknown (HELO ws5-4.us4.outblaze.com) (205.158.62.86) by 205-158-62-153.outblaze.com with SMTP; 8 Jul 2003 06:29:01 -0000 Received: (qmail 2813 invoked by uid 1001); 8 Jul 2003 06:29:01 -0000 Message-ID: <20030708062901.2812.qmail@operamail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [193.212.225.170] by ws5-4.us4.outblaze.com with http for bardevjen@operamail.com; Tue, 08 Jul 2003 14:29:01 +0800 From: =?iso-8859-1?B?QuVyZCBBcnZlIEV2amVu ?= To: "Struts Users Mailing List" Date: Tue, 08 Jul 2003 14:29:01 +0800 Subject: Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution? X-Originating-Ip: 193.212.225.170 X-Originating-Server: ws5-4.us4.outblaze.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks for your reply, Sandeep. From what I have understood from reading the java doc, a vector has an index on it like an array does. Is it really true that noone else has had any problems with this? If it is working for you, how do you implement it? Thanks a bunch! Bard ----- Original Message ----- From: Sandeep Takhar Date: Mon, 7 Jul 2003 10:13:33 -0700 (PDT) To: Struts Users Mailing List Subject: Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution? > I wouldn't use a vector, but maybe you can? > > My understanding is that iterate works on anything > that returns an iterator. > > logic:iterate name="someName" > > should be used when the bean someName is in some scope > and is the collection that you want. > > logic:iterate name="someName" property="someProperty" > should not be used if the above case is true. > > sandeep > --- B�rd Arve Evjen wrote: > > I didn't think this was a big problem for you > > Struts-gurus, but maybe I'm wrong :-) > > > > I have a vector called variationmargins and in it I > > have a property called loadProfile that is either 1 > > or 2 for all postings. I have tried to use the > > logic:iterate tag to output the result using the > > loadProfile as an index, but it has not effect. It > > just outputs everything, no matter the indexId. > > > > Does anyone have a clue what I am doing wrong? > > > > > property="variationMargins" indexId="loadProfile"> > > > property="loadProfileName"/> > >
> > > property="variationMargins" > > scope="session" width="100%" pagesize="100" > > requestURI="result.jsp" > > > decorator="org.apache.taglibs.display.test.ColumnsWrapper"> > > > > > property="deliveryPeriod" sort="true" width="10%"/> > > > align="right" sort="true" width="10%"/> > > > >
> > > > I would really appreciate the help. > > > > Cheers, > > Bard A. Evjen > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > struts-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > > struts-user-help@jakarta.apache.org > > > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org