java - Pass drop down list value from jsp to spring controller -
given following code:
@controller   public class foo   {       public void foo(@requestparam("dropdown") string value)       {            ...     }   }     and jsp:
<div>        <form action="/foo">         <select id="dropdown">             <option value="bar">bar</option>       </select>     </form>    </div>   how can pass value gets selected in dropdown id spring controller?  stands invalid request parameters when attempt ot execute this.
<div>        <form action="/foo">         <select name="dropdown">             <option value="bar">bar</option>       </select>     </form>    </div>      
Comments
Post a Comment