需要使用到的框架spring
jsp页面代码:
action="${turnToSaveOutcomeViewURL}" enctype="multipart/form-data" commandName="oc">
成果类型: | 成果类型1 成果类型2 |
成果名称: | |
获取时间: | |
后台代码如下:
@RequestMapping(params = "action=turnToCommitView")
public ModelAndView turnToCommitView(RenderRequest request,
RenderResponse response) {
System.out
.println(this.getClass() + " ModelAndView turnToCommitView()");
ModelAndView mv = new ModelAndView();
mv.addObject("oc", new OutcomeVo());mv.setView("commit");
return mv;
}
@RequestMapping(params = "action=turnToSaveOutcomeView",method=RequestMethod.POST)
public void turnToSaveOutcomeView(ActionRequest request,
ActionResponse response,@ModelAttribute("oc")OutcomeVo oc) throws IOException {
System.out.println(this.getClass() + " void turnToSaveOutcomeView()");
System.out.println("oc.getOcType(): " + oc.getOcType());
System.out.println("oc.getOcName(): " + oc.getOcName());
System.out.println("oc.getGotOCDate(): " + oc.getGotOCDate());