File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access a value in HashMap where key is an object and value is a collection of VO

 
amarshi mohanty
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have the below code in a action class .


The listValues has collection of VO's .
How to access the value in jsp using EL?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
amarshi mohanty
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if i iterate the hm like :


m getting:

value = 20100128-2=[class se.ralip.openarchive.vo.WfmsInvoiceManagementVO[ supplier=Mohanty: documentId=54318: invioceNumber= 3386675205: invoiceDate=19/12/2008: dueDate=19/12/2009: amount=400.00: arrivalDate=null: status=archived: scanno=123_457 ], class se.ralip.openarchive.vo.WfmsInvoiceManagementVO[ supplier=Mohanty: documentId=54319: invioceNumber= 3386675205: invoiceDate=19/12/2008: dueDate=19/12/2009: amount=400.00: arrivalDate=null: status=archived: scanno=123_458 ], class se.ralip.openarchive.vo.WfmsInvoiceManagementVO[ supplier=Mohanty: documentId=54320: invioceNumber= 3386675205: invoiceDate=17/12/2008: dueDate=18/12/2009: amount=4010.00: arrivalDate=null: status=archived: scanno=123_459 ]]


so how can i giv the {hashMapItems.key.supplier}
do i need [] operator for this?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, the jumble you posted makes no sense to me.

If you want to access a member of the map by key, use the syntax I already posted. If what's returned by that is a bean (or another map) you can keep going. For example:

This assumes that the keys are valid identifiers. If the keys are not identifiers, you need to use the [] notation.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic