I am new to Spring MVC, need guidance
My jsp is like :
<form:form name="form1" method="post" action="input.htm?method=getHealth">
.......
<td >
<form:select path="envList">
<form:options items="${envList}"/>
</form:select>
</td>
My .java is like:
public class InputController extends MultiActionController {
public ModelAndView getHealth(HttpServletRequest request, HttpServletResponse response) {
.......................
String selectedEnv =request.getParameter("envList");
}
}
Here I want to catch selected value from the dropdown to java,but
request.getParameter("envList")
is returning null.
Please suggest how can I get selected value from jsp to .java.
Thanks in advance