• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parse a hashmap containing arraylist in struts2

 
shwetank sharma
Greenhorn
Posts: 10
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying to parse a hashmap<string, arraylist> in jsp using struts2.

I can get the keys easily but i need to iterate the arraylist i m getting..

just like using a nested iterator

please find below code below...is giving a exception like "=" to expected



is it allowed to pass values this way in struts tags...

any help is highly appreciated

thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
Jesus Mireles
Ranch Hand
Posts: 122
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're probably looking to do something like this:


 
shwetank sharma
Greenhorn
Posts: 10
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx...I wonder why i never tried this...and kept on trying every possible option...
though i got this working from this approach also...




Thnx anyways...


Cheers
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic