logic:iterate length question

2003-07-03 Thread Weber, Nadja
Hello all,

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 feature?

Thanks

Kind regards

Nadja Weber

T-Systems 
Systems Integration 
Business Unit Entwicklungszentrum Darmstadt 
T-Systems Nova GmbH 
Office: Otto-Rohm-Str. 71c, 64293 Darmstadt 
Mail: Postfach 10 05 41, 64205 Darmstadt 
Phone: 06151 886-4162 
Fax: 06151 886-161 
mailto:[EMAIL PROTECTED]
Internet: http://www.t-systems.com 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: logic:iterate length question

2003-07-03 Thread Dirk Markert
Hello Nadja,

according to the docs:

The length value or attribute name (=0 means no limit).

Thus, it's a feature.

***

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 mailto:[EMAIL PROTECTED]
WN Internet: http://www.t-systems.com 


WN -
WN To unsubscribe, e-mail: [EMAIL PROTECTED]
WN For additional commands, e-mail: [EMAIL PROTECTED]



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: logic:iterate length question

2003-07-03 Thread Weber, Nadja
Thanks for the reply. Where did you find that sentence? I looked into the Taglib API 
reference but it doesn't state that information.

Anyway, does anybody have any idea how I could make struts *not* iterating?
I just realize that this sounds stupid so maybe explaining what i need will clear 
things up :)
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 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 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.
I hope I could make myself understood.

Any ideas on how to make things work? 

Kind regards

Nadja Weber


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


Hello Nadja,

according to the docs:

The length value or attribute name (=0 means no limit).

Thus, it's a feature.

***

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 mailto:[EMAIL PROTECTED]
WN Internet: http://www.t-systems.com 


WN -
WN To unsubscribe, e-mail: [EMAIL PROTECTED]
WN For additional commands, e-mail: [EMAIL PROTECTED]



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


-
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: AW: logic:iterate length question

2003-07-03 Thread Dirk Markert
Hello Nadja,

  

***

WN Thanks for the reply. Where did you find that sentence?
IterateTag.java 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 [mailto:[EMAIL PROTECTED]
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 mailto:[EMAIL PROTECTED]
WN Internet: http://www.t-systems.com 


WN -
WN To unsubscribe, e-mail: [EMAIL PROTECTED]
WN For additional commands, e-mail: [EMAIL PROTECTED]



WN Regards,
WN Dirk

WN +--- Quality leads ---+
WN | Dirk Markert [EMAIL PROTECTED] |
WN | Dr. Markert Softwaretechnik AG  |
WN | Joseph-von-Fraunhofer-Str. 20   |
WN | 44227 Dortmund  |
WN +-- to success! -+ 


WN -
WN To unsubscribe, e-mail: [EMAIL PROTECTED]
WN For additional commands, e-mail: [EMAIL PROTECTED]

WN -
WN To unsubscribe, e-mail: [EMAIL PROTECTED]
WN For additional commands, e-mail: [EMAIL PROTECTED]



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]