struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Markert <>
Subject Re: AW: logic:iterate length question
Date Thu, 03 Jul 2003 15:38:46 GMT
Hello Nadja,



WN> Thanks for the reply. Where did you find that sentence? line 187.

WN> I looked into the Taglib API reference but it doesn't state that information.

WN> Anyway, does anybody have any idea how I could make struts *not* iterating?
Can you use another logic tag?

WN> I just realize that this sounds stupid so maybe explaining what i need will clear things
up :)
WN> I'm working on a breadcrumb navigation. So i have this collection of crumbs, which
are to displayed as links, which is no problem, but now the customer wants the last crumb
(which is the current

Have you looked at struts-layout. It contains breadcrumb navigation.

WN> page or whatever) to be displayed as plain text. So what I wanted to  was iterating
through my crumbs with length set to collection length-1, and then iterate through the collection
again with
WN> offset set to collection length-1. This works fine unless there is only one crumb in
the collection, which makes the "length-1" equal 0.
WN> I hope I could make myself understood.

WN> Any ideas on how to make things work? 

WN> Kind regards

WN> Nadja Weber

WN> -----Ursprungliche Nachricht-----
WN> Von: Dirk Markert []
WN> Gesendet: Donnerstag, 3. Juli 2003 17:21
WN> An: Struts Users Mailing List
WN> Betreff: Re: logic:iterate length question

WN> Hello Nadja,

WN> according to the docs:

WN> "The length value or attribute name (<=0 means no limit)."

WN> Thus, it's a feature.

WN> ***************************************************************

WN>> Hello all,

WN>> I have a question regarding the length attribute of <logic:iterate>. If I
set it to "0" it seems to ignore the length attribute and iterate through the whole collection.
Is that a bug or a
WN>> feature?

WN>> Thanks

WN>> Kind regards

WN>> Nadja Weber

WN>> T-Systems 
WN>> Systems Integration 
WN>> Business Unit Entwicklungszentrum Darmstadt 
WN>> T-Systems Nova GmbH 
WN>> Office: Otto-Rohm-Str. 71c, 64293 Darmstadt 
WN>> Mail: Postfach 10 05 41, 64205 Darmstadt 
WN>> Phone: 06151 886-4162 
WN>> Fax: 06151 886-161 
WN>> Internet: 

WN>> ---------------------------------------------------------------------
WN>> To unsubscribe, e-mail:
WN>> For additional commands, e-mail:

WN> Regards,
WN> Dirk

WN> +------- Quality leads ---------------------------------------+
WN> | Dirk Markert            |
WN> | Dr. Markert Softwaretechnik AG                              |
WN> | Joseph-von-Fraunhofer-Str. 20                               |
WN> | 44227 Dortmund                                              |
WN> +---------------------------------->>>>>>> to success! <<<<<<-+

WN> ---------------------------------------------------------------------
WN> To unsubscribe, e-mail:
WN> For additional commands, e-mail:

WN> ---------------------------------------------------------------------
WN> To unsubscribe, e-mail:
WN> For additional commands, e-mail:


+------- Quality leads ---------------------------------------+
| Dirk Markert            |
| Dr. Markert Softwaretechnik AG                              |
| Joseph-von-Fraunhofer-Str. 20                               |
| 44227 Dortmund                                              |
+---------------------------------->>>>>>> to success! <<<<<<-+

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message