hi ,

i 'm new to JSP and i hope the probelm i face would be an easy one for many


I have a jsp which returns a java string array. i want to populate this in a
combo box.  when i execute this i get a number of combo boxes with one value
in each.

the code is
 do
   {
       String testa=result1.substring(b1);
       int count=0;


  %>
  <select NAME="Software_Type" size="1">

  <%
  for(int i=0;i<testa.length();i++)
   {

             if ( testa.substring(i,i+1).equals(",") )
             {
    count++;
      }

      if (count >= 2)
      {

                 res[i]=testa.substring(i+1);

   %>

  <option value="<%=res[i]%>"><%=res[i]%></option>

  <%


     break;

                    }


         }
   %>
         </select>
         <%
             result1=result1.substring(a,(b1-1));
       b1=result1.lastIndexOf("pmS");

   } while (b1 >= a);

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to