i want to pass the hashmap object to another jsp to prepare the json data for me to create the grid.
in the jsp i am getting the hashmap from the dao java files but i need these hashmap contents to be displayed as a grid. so in order to do this i thought of passing it to another jsp which prepares the json data from hashmap. But i dont find any solution to pass the hashmap to that jsp file. i have to pass these hashmap as post values in grid. jsp file data
Hashmap groupMap1= GroupMap.getGroupMapModel();
Hashmap groupMap2 = GroupMap.getGroupMappingNames();
here is the code to create grid
jQuery("#list").jqGrid({
altRows:false
,autowidth:true
,url:'<%=request.getContextPath()%>/jsp/common/prepareGridData.jsp'
,datatype: "json"
,height: "100%"
,colNames:<%=colNames%>
,colModel:<%=colModel.toString()%>
,paging: true
,rowNum:25
,rowList:[25,50,75,100]
,loadonce:true
,caption: "Group Listing"
,pager:"#gridBottom"
,multiboxonly:false
,multiselect:false
,scrollrows:false
,shrinkToFit: false
,viewrecords:true
,postData:{groupMap1:"<%=groupMap1%>",groupMap2:"<%=groupMap2%>"}
}).navGrid('#page',{edit:false,add:false,del:false});
}
we cannot get any object thru request.getParameter. Then how can these values be accessed by prepareGrdData.jsp file to get the json data?