I believe this is the correct behaviour, that is
1) if no value is selected, then the parameter name is not sent in the request, and getParameter() returns null
2) if a value is selected, then the parameter exists and the value is defined.
One solution is to provide a default value with an empty value, such as
Here, you have given the submit-button the same name you've given for your select box. You don't need a name for a submit button. Even if you provide, it'd be better to use a unique name.
I removed the name attribute and gave it the value attribute... Another question on HTML, i need to do two things
1. Pass a list of objects from doGet() to doPost() .. should i just put it on HttpSession?
2. Keep track of the EJBRemote reference so that i don't have to look it up on the JNDI context everytime i need it. I tried putting it on the HttpSession but it becomes null