File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes creating hashtable on ognl  (whose value is an arraylist of objects ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "creating hashtable on ognl  (whose value is an arraylist of objects )" Watch "creating hashtable on ognl  (whose value is an arraylist of objects )" New topic
Author

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

meha jain
Greenhorn

Joined: May 23, 2013
Posts: 1
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




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating hashtable on ognl (whose value is an arraylist of objects )