Iterator iter = listkey.iterator();
while (iter.hasNext()) {
String key = (String)iter.next();
ListElement row = (ListElement)questionList.get(key);
HashMap questionInfo = new HashMap();
StringMember questionField = (StringMember)row.get("Question");
StringMember answerField = (StringMember)row.get("Answer");
questionInfo.put("questionID", new Integer(row.getElementID()));
questionInfo.put("question", (String)questionField.getMemberValue());
questionInfo.put("answer", (String)answerField.getMemberValue());
qList.add(questionInfo);
}
faqForm.set("questionList", qList);