Filling HTML dropdown list in JSP with values fetched from database in Servlet
Assuming that you’ve the model and DB part already finished (as per the comments on the question), just create a servlet class and implement the doGet() method accordingly. It’s relatively simple, just retrieve the list of passengers from the DB, store it in request scope and forward to the JSP which should present it. The … Read more