• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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




 
This looks like a job for .... legal tender! It says so right in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic