I've not done any Java for years, but I can see what the problem is. When you are printing out your option values, you are not quoting them. The resulting HTML will look like this:
<option value=Transaction Control Protocol>Transaction Control Protocol</option>
As you can probably tell from the syntax highlighting, this means that your value is "Transaction" and "Control" and "Protocol" end up as meaningless attributes of the option.
Try your
println
lines like this instead:
pw.println("<option value=\""+a1+"\">"+a1+"</option>");