passing data from <form:select> to my controller is being sent with the value null Spring MVC
<p>I am trying to get the value of the selected element in my dropdownList to save it into my database but the data is being passed 'null'.</p>

<p>I've searched in these post and over the web but I could not being able yet to find the answer: <a href="https://stackoverflow.com/questions/17218693/how-to-pass-data-from-formselect-spring-mvc">How to pass data from &lt;form:select&gt; Spring MVC</a> and <a href="https://stackoverflow.com/questions/28200021/how-to-pass-select-and-input-data-from-view-to-a-controller-spring-mvc">How to Pass &lt;Select&gt; and &lt;input&gt; data from View to a Controller (Spring MVC)</a>.</p>

<p>Here is my view: </p>

<pre><code>&lt;form:form action="${urlcallBankAddAction}" method="POST" onsubmit="return validar(this)" modelAttribute="banco"&gt;
    &lt;input type="text" name="bancoNombre" /&gt;
    &lt;input type="text" name="bancoCodigoVisa" maxlength="8" onkeypress="return isNumber(event);" /&gt;
    &lt;form:select path="descripcion" name="bancoPadre" id="banks-description" onchange="selectValue()"&gt;
            &lt;form:options items="${resultList}" itemValue="id" itemLabel="descripcion"/&gt;
    &lt;/form:select&gt; 
&lt;/form:form&gt;
</code></pre>

<p>My controller (by the way, you all may see that it has the property 'required = false', yes because it can be null but that logic I'll apply it later, once I got the value from the selected option):</p>

<pre><code>@RequestMapping(value = "/addAction", method = RequestMethod.POST)
public String agregarBanco(HttpServletRequest request,
        @RequestParam("bancoNombre") String bancoNombre,
        @RequestParam("bancoCodigoVisa") int bancoCodigoVisa,
        @RequestParam("bancoCodigoSudeban") String bancoCodigoSudeban,
        @RequestParam(value = "bancoPadre", required = false) String bancoPadre,
        ModelMap model,
        HttpSession session){

    try{
        String valorSesion = (String) session.getAttribute("acceso");//Se valida el inicio de sesion
        if(valorSesion.equals("1")){//Se valida el inicio de sesion
            Banco banco = new Banco();
            logger.error("****************************");
            logger.error("BANCO PADREEEEEE " + bancoPadre + "      " + bancoNombre + " " + bancoCodigoVisa);
            logger.error("****************************");
            banco.setDescripcion(bancoNombre);
            banco.setCodigoVisa(bancoCodigoVisa);
            banco.setCodigoSudeban(bancoCodigoSudeban);

            bancoService.agregarBanco(banco);

            model.addAttribute("status", "Banco guardado con exito.");

            return "redirect:/banks/details";
        } else{
            //MANDAR A PAGINA DE ERROR
            return "redirect:/unauthorized";
        }
    } catch(NullPointerException n){//Se valida el inicio de sesion
        //MANDAR A PAGINA DE ERROR
        return "redirect:/unauthorized";
    }
</code></pre>

<p>and my model just in case:</p>

<pre><code>@Id
@Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;

@Column(name = "cod_visa")
private int codigoVisa;

@Column(name = "CodSud")
private String codigoSudeban;

@Column(name = "descripcion")
private String descripcion;

@Column(name = "id_padre")
private Integer idPadre;
</code></pre>

<p>When I send the data to my controller, you can see I and logging those parameters that I am supposed to get from my view but this is what I am getting</p>

<pre><code>2016-07-14 09:14:21 ERROR BancosController:96 - ****************************
2016-07-14 09:14:21 ERROR BancosController:97 - BANCO PADREEEEEE null           test 32423
2016-07-14 09:14:21 ERROR BancosController:98 - ****************************
</code></pre>

<p>Here is a portiong of what I got on the web by looking 'view page source' and i would like to take the value and just to test it the plain text.</p>

<pre><code>&lt;select id="banks-description" name="descripcion" name="bancoPadre" onchange="selectValue()"&gt;
            &lt;option value="27"&gt;100% BANCO, BANCO UNIVERSAL, C.A. DE OSMAN&lt;/option&gt;
 &lt;/select&gt; 
</code></pre>

<p>and if it is worth it, here a capture of the view
<a href="https://i.stack.imgur.com/D7Z7D.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D7Z7D.jpg" alt="enter image description here"></a></p>

<p>Hope you guys could give a hand with this. I dont know what I am missing.</p>

<p><strong>EDIT</strong></p>

<p>I add the whole code view</p>

<pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
&lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
&lt;%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%&gt;
&lt;%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %&gt;
&lt;%@ taglib prefix="t" tagdir="/WEB-INF/tags"%&gt;

&lt;spring:url value="/banks/deleteAction" var="urlcallBankDeleteAction"/&gt;
&lt;spring:url value="/banks/addAction" var="urlcallBankAddAction"/&gt;

&lt;form:form action="${urlcallBankAddAction}" method="POST" onsubmit="return validar(this)" modelAttribute="banco"&gt;
&lt;div style="color:RGB(0,32,159); font-weight:bold;"&gt;&lt;fmt:message key="banks.addTitle" /&gt;&lt;/div&gt;
&lt;div class="field mandatory"&gt;
    &lt;spring:message text="${status}" /&gt;&lt;br /&gt;
    &lt;label&gt;&lt;fmt:message key="banks.nombre" /&gt;&lt;/label&gt;
    &lt;input type="text" name="bancoNombre" /&gt;
&lt;/div&gt;
&lt;div class="field mandatory" style="display:inline-block;"&gt;
    &lt;label&gt;&lt;fmt:message key="banks.visaCode" /&gt;&lt;/label&gt;
    &lt;input type="text" name="bancoCodigoVisa" maxlength="8" onkeypress="return isNumber(event);" /&gt;
            &lt;label&gt;&lt;fmt:message key="banks.sudebanCode" /&gt;&lt;/label&gt;
    &lt;input type="text" name="bancoCodigoSudeban" maxlength="4" onkeypress="return isNumber(event);" /&gt;
&lt;/div&gt;
    &lt;br/&gt;
    &lt;div class="field mandatory" style="display: inline; width: 150px;"&gt;
        &lt;label&gt;Entidad Interna: &lt;input type="radio" name="padre" id="entidad-interna" value="interna" onclick="disabledList()"  disabled=true checked/&gt;&lt;/label&gt; 
        &lt;label&gt;Entidad Externa: &lt;input type="radio" name="padre" id="entidad-externa" value="externa" onclick="enableList()" disabled=true/&gt;&lt;/label&gt;
    &lt;/div&gt;
    &lt;br&gt;&lt;br&gt;        
    &lt;div class="field mandatory" style="display: inline-block; width: 150px;"&gt;
        &lt;input type="checkbox" name="tiene-padre" id="tiene-padre" value="tiene-padre" onchange="checkList()" /&gt; Tiene padre
       &lt;form:select path="descripcion" name="bancoPadre" id="banks-description" onchange="selectValue()"&gt;
            &lt;form:options items="${resultList}" itemValue="id" itemLabel="descripcion"/&gt;
        &lt;/form:select&gt; 
    &lt;/div&gt;
    &lt;br&gt;&lt;br&gt;         
     &lt;%-- &lt;form:select path="descripcion" name="bancoPadre" id="banks-description" onchange="selectValue()"&gt;         
            &lt;form:options items="${resultList}"  /&gt;
         &lt;/form:select&gt;--%&gt;        
&lt;t:button-submit /&gt;
&lt;/form:form&gt;
&lt;table class="smart" &gt;
    &lt;caption&gt;&lt;fmt:message key="banks.listTitle" /&gt;&lt;/caption&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th &gt;&lt;fmt:message key="banks.visaCode" /&gt;&lt;/th&gt;
            &lt;th &gt;&lt;fmt:message key="banks.sudebanCode" /&gt;&lt;/th&gt;
            &lt;th &gt;&lt;fmt:message key="banks.nombre" /&gt;&lt;/th&gt;
            &lt;th &gt;&lt;fmt:message key="banks.operation" /&gt;&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;c:forEach items="${resultList}" var="c" varStatus="iteracion"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;${c.codigoVisa}&lt;/td&gt;
            &lt;td&gt;${c.codigoSudeban}&lt;/td&gt;
            &lt;td&gt;${c.descripcion}&lt;/td&gt;
            &lt;td&gt;&lt;a href="${urlcallBankDeleteAction}/${c.codigoSudeban}" onclick="return confirm('¿Está seguro de eliminar este banco?');"&gt;&lt;fmt:message key="banks.operation1" /&gt;&lt;/td&gt;
        &lt;/tr&gt;
&lt;/c:forEach&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>