I have a form:
Code: Select all
<form class="csvForm" method="post" action="/admin/myentity/bulkUpload" style="display: none;">
</form>
and I have a controller:
Code: Select all
@RequestMapping("/" + AdminMyController.SECTION_KEY)
@Secured("PERMISSION_OTHER_DEFAULT")
public class AdminMyController extends AdminBasicEntityController {
protected static final String SECTION_KEY = "myentity";
@RequestMapping(value = "/bulkUpload", method = RequestMethod.POST)
public String showBulkUpload(HttpServletRequest request, HttpServletResponse response, Model model) throws IOException {
Map<String, Object> responseMap = new HashMap<String, Object>();
return "sts";
}
}
Im wondering why it wont get in showBulkUpload method
when I changed the method into GET.. it will get in the method.. Im wondering what did I miss
and btw, there's no issue with the controller bean coz it gets scanned 100%