I have my select tag successfully populating with the strings I want it to, but when I hit submit and try and grab the value of the select tag it returns null.
index.jsp form
<form action="ServletMain" method="post" enctype="multipart/form-data">
<select id="file_from_server" name="file_from_server">
<c:forEach var="file" items="${files}">
<option><c:out value="${file.getName()}" /></option>
</c:forEach>
</select>
<input type="submit">
</form>
ServletMain doPost method
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String fileFromServer = request.getParameter("file_from_server");
PrintWriter pw = response.getWriter();
pw.append(fileFromServer);
}