Spring MVC with disabled dropdown list

I just want to ask why the dropdown list/combobox with disabled attribute is resulting to javanullpointer exception when using it in the controller?

This is my JSP:

<td>
   <form:select path="obj" disabled="true">
   <form:options items="${objList}" />
   </form:select>
</td>

When executing the controller and I get the default value of the dropdown above, the object is null. Why is that?

Thank you.


Source: jsp

Leave a Reply