I am new to Spring MVC, need guidance
My jsp is like : .......
<form:select path="envList">
<form:options items="${envList}"/>
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