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 Java 8 in Action this week in the Java 8 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




 
It is sorta covered in the JavaRanch Style Guide.
 
subject: creating hashtable on ognl (whose value is an arraylist of objects )
 
Similar Threads
how to retrive session object / struts
JEXCEL to JSP
Struts2 Iterator Radio Tag Display Issue.
Passing params from JSP to Action
Pass variable from JQuery and get that in JSP