• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the next element of a <logic:iterate>

 
Arthur Colombo
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.
 
ravi badana
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.





 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic