SpringMVC session

In springMVC, We use model.addAttribute(String,String) to add something into request, then we can fetch it in the forward JSP page through EL expression. Now I find that if we use  @SessionAttributes() to add the object into session when we use model.addAttribute(String,String) at the same time, then we can use the objects between different controllers. This session is completely same with request.getSession(). It's really good for our developers. 

posted @ 2009-12-14 10:55  留心_frankliujava  阅读(1914)  评论(0)    收藏  举报