Results 1 to 1 of 1
  1. #1
    radhikavk is offline Member
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Default drop down value not setting in IE7

    Hi , i have a drop down of countries which is coming from database and one country name selected by admin that i m comparing with that drop down list if both values are same that value is selected . So the value is setted in mozilla but in IE its not setting it is giving the first element of countries array


    /******* Java code***************/

    <html:select property="defaultcountry" styleClass="flatbox" style="width:175px;">
    <%
    for (int k = 0; k < countries.size(); k=k+2)
    {
    if((Integer.parseInt(global_settings.get(1).toStri ng())==Integer.parseInt(countries.get(k).toString( )))) {
    %>
    <option value="<%=countries.get(k)%>"selected"><%=countrie s.get(k+1)%></option>
    <%
    } else {
    %>
    <option value="<%=countries.get(k)%>"><%=countries.get(k+1 )%></option>
    <%
    }
    }
    %>
    </html:select>

    Here countries is an array of country ids and names from country table and global_settings.get(1) is an country id selected by admin fetching from other table.

    plz any solution??
    Last edited by radhikavk; 04-18-2009 at 09:08 AM.

Similar Threads

  1. Replies: 1
    Last Post: 04-01-2009, 11:28 AM
  2. Drag and drop
    By thayalan in forum AWT / Swing
    Replies: 1
    Last Post: 02-16-2009, 04:04 PM
  3. drop down menu
    By mike eriksen in forum AWT / Swing
    Replies: 2
    Last Post: 06-19-2008, 08:33 AM
  4. Drop down menu
    By BenNeiderlander in forum New To Java
    Replies: 3
    Last Post: 02-05-2008, 08:35 AM
  5. Drag and drop
    By abhivenugopal in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 01-30-2008, 03:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •