Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hashmap display  RSS feed

 
Crystal Bazil
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two hashmaps that I need to display using JSTL. I cannot get the formatting that I want. Please see below.



and I would like to display the map's data like so



Using the logic below, I am able to display the map's data when the count is equal but it will not display the last item in mapOne. MapOne's size will always be bigger than or equal to mapTwo.




If someone coudl point me in the right direction I would appreciate it. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The data that you have passed to the JSP is ill-formatted for the use you want to put it to. Rather than trying to perform contortions on the JSP, I'd rethink how the data is formatted before it gets to the JSP and put it into a structure that is easier to deal with.
 
Crystal Bazil
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! I followed your advice and solved my issue.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Super! Perhaps you could post back with your solution so anyone else with the same issue can see it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!