• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with setting values in hashmap in struts

 
Hd Desai
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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"/>%

(<cut value="${th2Obj.key}" /> Y)

</c:forEach>

Please let me know how this can be handled.

Thanks in advance
 
Joe Ess
Bartender
Posts: 9295
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at Indexed Properties.
 
Hd Desai
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,

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