• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Problem with setting values in hashmap in struts

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

My project is on Struts 1.2.

I am having an arraylist say List and that list has litst of Objects say obj.

Now Obj has one filed as hashmap.

When I try to poupalte these hashmap values in different textboxes in JSP it is working fine. But when I hit Submit values this hashmap is not getting populated.

Here is code snippet...

<c:forEach items="${List[1].TermAmtMap}" var="th2Obj">

<html:text property="${th2Obj.key}" value="${th2Obj.value}" size="7"/>%

(<c:out value="${th2Obj.key}" /> Y)

</c:forEach>

Please let me know how this can be handled.

Thanks in advance
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at Indexed Properties.
 
Hd Desai
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Joe,

Thank you for the suggestion, I will take a look at that.
 
reply
    Bookmark Topic Watch Topic
  • New Topic