Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating hashtable on ognl (whose value is an arraylist of objects )

 
meha jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am retrieving a hashtable of arraylist on server side and displaying on jsp side. But i want to take that back to server side when page is submitted.

Server Code

Hashtable<String,ArrayList> htItemBidder = new Hashtable<String, ArrayList>();


JSP code


<s:iterator value="htItemBidder" status = "itemStatus">
<s:set name="itemNo" value="%{key}"/>

<s:iterator value="%{value}" status="rowStatus">
<s:set name="rowCnt" value="#rowStatus.index"/>

<s:hidden name="htItemBidder[%{#itemNo}][%{#rowCnt}].a" value="%{a}"></s:hidden>
<s:hidden name="htItemBidder[%{#itemNo}][%{#rowCnt}].b" value="%{b}"></s:hidden>
<s:hidden name="htItemBidder[%{#itemNo}][%{#rowCnt}].c" value="%{c}"></s:hidden>



Basically the above colored code is to be corrected so that after submission htItemBIdder is as it is on server side


Please help




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic