String incXML) throws ServletException, IOException {
String listboxId = incXML.substring(incXML.indexOf("<id>") + 4, incXML
.indexOf("</id>"));
TreeMap<Integer, ListOption> tree = null;
ListOption loBean = null;
if (listboxId != null && !listboxId.equals("")) {
try {
tree = lang.getListBoxTree(langId, listboxId);
for (Integer listOrderNr : tree.keySet()) {
loBean = tree.get(listOrderNr);
if (!loBean.getValue().equals("")
&& !loBean.getText().equals("")) {
res.getWriter().write("<option>\n");
res.getWriter().write("<id>");
res.getWriter().write(loBean.getValue());
res.getWriter().write("</id>\n");
res.getWriter().write("<name>");
res.getWriter().write(loBean.getText());
res.getWriter().write("</name>\n");
res.getWriter().write("</option>\n");
}
}
} catch (Exception e) {