RE: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?
Matt, No, I'm still stuck with the iterate:logic stuff :-) Thanks a bunch for providing an example. The lack of examples seems to be common in the struts-world :-) The books I've seen isn't much better, either. Cheers, Bard - Original Message - From: "Matthew J. Vincent" <[EMAIL PROTECTED]> Date: Tue, 8 Jul 2003 13:42:27 -0400 To: <[EMAIL PROTECTED]> Subject: RE: Problems with logic:iterate (indexId has no effect) - doesn'tanyone know the solution? > Bard, > > I'm not sure if you have figured this out or not, but to all who haven't - > here is a link to a Struts tag example. > > http://moosejaw.org/java/struts-iterate/ > > Enjoy. > > Matt > > > > > 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 <[EMAIL PROTECTED]> > Date: Mon, 7 Jul 2003 10:13:33 -0700 (PDT) > To: Struts Users Mailing List <[EMAIL PROTECTED]> > 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 <[EMAIL PROTECTED]> 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: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > __ > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > http://sbc.yahoo.com > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?
Bard, I'm not sure if you have figured this out or not, but to all who haven't - here is a link to a Struts tag example. http://moosejaw.org/java/struts-iterate/ Enjoy. Matt 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 <[EMAIL PROTECTED]> Date: Mon, 7 Jul 2003 10:13:33 -0700 (PDT) To: Struts Users Mailing List <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?
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 <[EMAIL PROTECTED]> Date: Mon, 7 Jul 2003 10:13:33 -0700 (PDT) To: Struts Users Mailing List <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]