Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Getting the next element of a <logic:iterate>

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.





 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic