I have been trying for a week to solve a strange problem in the BeerSelect problem in Chapter 10 of Head First's Servlets & JSP Book.
I can get the code to run perfectly except that when I call the initial jsp page up in the browser, only Amber, Brown and Dark appear as options. I can't get Light to appear. If I select either amber, brown or dark I always get the right options back in results.jsp so I think everything after the initial BeerSelect.jsp pages must be working correctly.
When I put in various setAttributes and getAttributes I can see that all four beer types are there in the Container and I can get the full list of options to appear on the results.jsp page by calling getAttribute on the optionsList attribute in the code below. Also if I put an empty option in before "Light" in the BeerExpert.java file, all four options appear.
However the initial html selection field (from BeerSelect.jsp) won't show "light" which is the first of the 4 options.