Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-08 Thread Bård Arve Evjen
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

RE: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-08 Thread Matthew J. Vincent
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 iterate/ 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

RE: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-08 Thread Bård Arve Evjen
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

Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-07 Thread Bård Arve Evjen
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

Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-07 Thread Sandeep Takhar
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