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:

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

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.