Trying to get value of an option field in Java
<p>I'm having a bit of an issue with getting the value of a select in java. </p>

<p>This is the code inside of my java controller:</p>

<pre><code>String topicName = request.getParameter("select_topic");
</code></pre>

<p>This is the code inside of my JSP file:</p>

<pre><code>&lt;select class="topic-form" name="select_topic" style="height:40px; " id="select_topic"&gt;
    &lt;option&gt;Select topic&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I'm generating options for the select dynamically and then trying to get the selected option inside of java. The problem is I tried to see what the code in java returns and it's a "null"  value. I've also made the jsp return the values inside the console to check if the values are right and they are. So all I can think of is that the value somehow doesn't get taken by        topicName. I have also checked to see if the function gets called and it does. </p>