Spring MVC complex model population from multiple sources

后端 未结 5 2227
不思量自难忘°
不思量自难忘° 2020-12-30 09:36

Well, my question may sound a little bit fuzzy, but here it is, anyways. I\'m building a web application using Spring MVC 3.1.M1, JSP 2.1 (without Tiles, I use plain JSP tag

5条回答
  •  暖寄归人
    2020-12-30 10:00

    handler interceptor is fine for shared data which is used in every page.

    if you want fine grained "components" you really should reconsider using apache tiles. from there you can use a "controller" (ViewPreparer) for each tile as pointed here:

    http://richardbarabe.wordpress.com/2009/02/19/apache-tiles-2-viewpreparer-example/

提交回复
热议问题