Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

meha jain
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

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!