File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Getting the next element of a <logic:iterate> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting the next element of a <logic:iterate>" Watch "Getting the next element of a <logic:iterate>" New topic
Author

Getting the next element of a <logic:iterate>

Arthur Colombo
Greenhorn

Joined: Apr 21, 2011
Posts: 11
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

Joined: Apr 21, 2011
Posts: 11
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

Joined: Mar 14, 2012
Posts: 1
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.





 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the next element of a <logic:iterate>