I wrote some html code that lets the user choose an input from a drop down menu then it is passed into a servlet and that creates an HTML document with the output. How does the servlet get the input from the user. In other words, what code do i have to write in the servlet .java file to get the input from the html?

If the information has been posted to the servlet, using request.getParameter will display the information passed.
You would use it something like this:

request.getParameter("firstname")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.