M
Mark van de Veerdonk
Hi,
I'm new to Struts and I'm looking for a feature I just can't find. Is there
a way to test within a <logic:iterate> loop whether the current item is the
last item or not? I want to create a comma seperated list that will be the
initialization of a javascript array. So there must be no comma after the
last entry.
I can't find a <logic:hasnext> or something like that. Is a tag like that
available in the Open Source community? I'm using 100% scriplet code now
(including not using <logic:iterate> anymore), which is yucky of course. It
would be somewhat less yucky if I could still use <logic:iterate> and access
the Iterator that <logic:iterate> creates internally to perform the
..hasNext() in scriplet code. Is this possible
What is the best way to go about this? Thanx!
Mark
I'm new to Struts and I'm looking for a feature I just can't find. Is there
a way to test within a <logic:iterate> loop whether the current item is the
last item or not? I want to create a comma seperated list that will be the
initialization of a javascript array. So there must be no comma after the
last entry.
I can't find a <logic:hasnext> or something like that. Is a tag like that
available in the Open Source community? I'm using 100% scriplet code now
(including not using <logic:iterate> anymore), which is yucky of course. It
would be somewhat less yucky if I could still use <logic:iterate> and access
the Iterator that <logic:iterate> creates internally to perform the
..hasNext() in scriplet code. Is this possible
What is the best way to go about this? Thanx!
Mark