Hello

Next target

Akka, SpringMVC

Xiaohan's programmer life

A student in BUPT and UF. I would like to focus on SpringMVC and AKKA in the next half year.

导航

SpringMVC 构造我的OAnno在线标记器

Posted on 2014-06-18 01:21  Xiaohan S.  阅读(161)  评论(0)    收藏  举报

最近有兴趣开始搞了个OAnno开源项目。想用SpringMVC框架来做一个WEB APP然后上面可以在线分配Annotation工作给Worker,worker在线做好后直接提交。

基本功能正在完善中。

1. 在有表单的网页上,返回必须是ModelAndView('url',"command",new MODEL());

里面必须要有command这个字符串,以匹配在jsp网页中用的form:form(springmvc格式)的表单。

2. 关于Session: 要使用session,首先需要在控制类前标注@SessionAttribute,然后在ModelAndView对象中直接使用addObject添加。

在调用时直接通过Map形式访问Model对象即可。