I want to send a picture to another page and see what happen
but when I put
@RequestParam Map map
it can not find the local page.
<form id = "myForm" action ="/submit_page" method="POST" enctype="multipart/form-data">
input class="uploadName" value="" disabled="disabled">
<label for="fileFind">find file</label>
<input type="button" onclick="myFunction()" value="Submit form">
</form>
and I supposed to get this file with /submit_page
@RequestMapping("/submit_page")
public ModelAndView submit_page(@RequestParam Map map ){
ModelAndView mav = new ModelAndView();
mav.setViewName("submit");
return mav;
}
with out @requestparam Map map it find the page