• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting the next element of a <logic:iterate>

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to make a comparison between the current element and the next one over a <logic:iterate> tag, but I have no idea how to get the next element.



If anyone can shed some light about this or point me to a similar solution (aside from scriptlets), I'd be very grateful.
 
Arthur Colombo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, turns out I'm dumber than you guys might think I am

Anyway, solved the problem after much trial and error.


I didn't know I could call the request attribute's specific position as a common array, so it took me some time, but now that's that.
Hope that, if anyone else comes with this question this helps out.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Arthur Colombo wrote:Well, turns out I'm dumber than you guys might think I am

Anyway, solved the problem after much trial and error.


I didn't know I could call the request attribute's specific position as a common array, so it took me some time, but now that's that.
Hope that, if anyone else comes with this question this helps out.



Hi colombo,

What if i have arraylist which contains DTO objects how do i compare two same values in different DTO objects which are in the arraylist.





 
reply
    Bookmark Topic Watch Topic
  • New Topic