开发者

flash context in spring 2.5

How do i use the flash context in spring w开发者_如何转开发ithout having to install webflow?


In mvc-showcase example you can find special filter which emulates flash scope behaviour, so probably you can use it right now and don't waiting 3.1 with official support.

See for details: web.xml, FlashMapFilter, FlashMap

(I know that mvc-showcase is for Spring 3.0 and you asked about 2.5, but when I look into FlashMapFilter source I see than there no 3.0 specific things.)

HTH


@SessionAttributes can be used like a flash context, since you can clear them using SessionStatus

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜