File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes List options.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "List options...." Watch "List options...." New topic

List options....

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I am writing a servlet which uses html form field tag for selecting a list of choices, My question is if i want to have the option of having other than the select choices, what would be the best solution. Is there any tag/ anything that i can add to the html tag.

Joined: Jul 06, 2000
Posts: 16
Create an option in the list with the value of "other". Create a text field to the side for "Other" choices. Put logic in your servlet that gets the value of the textfield if the value of the list is "other".
I agree. Here's the link:
subject: List options....
It's not a secret anymore!