前臺 app
後臺的接收代碼爲:
@RequestMapping("/mysaveProject")
public ModelAndView
saveProject(@ModelAttribute Project project, @RequestParam String
action,@RequestParam("file") MultipartFile file ) {
ModelAndView
mav=new
ModelAndView();
if(action.equals("保存"))
{
mav.addObject("project",myProjectApplicationService.saveProject(project,file));
}
else
if(action.equals("提交"))
{
mav.addObject("project",myProjectApplicationService.submitProject(project,file));
}
mav.addObject("team",
new
Team());
mav.addObject("users",myProjectApplicationService.getUsersMap());
mav.addObject("authorities",myProjectApplicationService.getAuthoritiesMap());
mav.setViewName("_application/addProjectMember.jsp");
return
mav;
} jsp