开发者

Spring Web Flow Error MEssages

I have a java web application running on Spring Web FLow,Spring Faces. I would like to ask as to how to properly manage error messages display. Should I do the usual storing of error messages on the session? Or is there a better hand开发者_如何学Goling by Spring regarding the matter.


The flashScope is intended for just this type of "display a once-off message to the user" usage. You can use it in combination with a resource bundle and the or tags to retrieve the localized error string from a key stored in the flashScope.

Spring Web Flow offers a level of automation for error messages if you make use of the validation framework so you may not even need to do the above manually. However not knowing your exact use case, it's hard to recommend a specific approach.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜