Results 1 to 2 of 2
  1. #1
    n.aval.gupta is offline Member
    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Default HashMap Display Default value

    Dear , I m setting in java all the countries in hashMap like this---
    countryName = cnt.getStringProperty("COUNTRY_NAME");
    oid = ""+cnt.getLongProperty("OID");
    countries.put(countryName, oid)

    and displaying the All countries in the drop down like

    <html:select property="country" styleClass="comboStyle" style="width:200px;" >
    <htmlptions collection="countries" property="value" labelProperty="key"/>
    </html:select>

    Now i want to display country "India" in dropdwon as default value how can i do it ???

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

Similar Threads

  1. final HashMap hm=new HashMap();
    By sangramkeshari.jena in forum New To Java
    Replies: 4
    Last Post: 07-21-2011, 10:44 PM
  2. Replies: 7
    Last Post: 12-08-2009, 08:17 PM
  3. Replies: 1
    Last Post: 03-10-2009, 02:12 PM
  4. Replies: 8
    Last Post: 12-29-2008, 08:12 AM
  5. Replies: 0
    Last Post: 04-04-2008, 01:15 AM

Tags for this Thread

Posting Permissions

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