First, please use correct terminology... there's no such thing as a "combo box" in HTML. Please read
HtmlHasNoComboBox
Second, this is nothing you would do with
Servlets, or even JSP. It needs JavaScript and Ajax as already noted. SO this has been moved to the HTML forum where you will find that this discussion has already taken place many times. Please
SearchFirst.