Package org.openqreg.bean

Examples of org.openqreg.bean.ListOption


      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) {
View Full Code Here

TOP

Related Classes of org.openqreg.bean.ListOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.