Results 1 to 2 of 2
  1. #1
    aa74 is offline Member
    Join Date
    Apr 2008
    Posts
    3
    Rep Power
    0

    Smile getting values from database in dropdown

    Hello,

    i have a dropdown menu containing names of countries when the user choose one country i want to extract the cities of that country from the embaded database into another dropdown menu how can i do that using JSTL ?

    <form action="" >
    <p>Select a country:</p>
    <p><select name="origin" size="1">
    <option selected ="selected"></option>
    <option name="UK">UK</option>
    <option name="France">France</option>
    <option name="Italy">Italy</option>
    </select> </p>

    <p>Select a city:</p>
    <p><select name="type" size="1">
    <option selected ="selected"></option>
    </select> </p>
    <input type="submit" value="Submit" />

    p.s i use Mckoi database embaded in tomcat

    Thanks for your help

  2. #2
    aa74 is offline Member
    Join Date
    Apr 2008
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Replies: 4
    Last Post: 04-15-2008, 02:04 PM
  2. Servlet with a Form/Dropdown
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-16-2008, 11:24 AM
  3. how to populate html:select with values from database
    By sathya_k_83 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-07-2007, 11:53 AM
  4. Help with dropdown list
    By barney in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 08:17 AM

Posting Permissions

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