Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc SpringMVC中类似Smarty插件的功能是否可能?_Spring Mvc_Plugins_Smarty_Portlet - Fatal编程技术网

Spring mvc SpringMVC中类似Smarty插件的功能是否可能?

Spring mvc SpringMVC中类似Smarty插件的功能是否可能?,spring-mvc,plugins,smarty,portlet,Spring Mvc,Plugins,Smarty,Portlet,我有一个软件设计问题。我正在寻找SpringMVC应用程序中类似Smarty插件的功能。让我来解释一下这个案子 我正在使用SpringMVC构建一个webapp,我希望系统能够显示应用程序范围内的“系统消息”,如 几个选项: 弹簧拦截器 瓦片视图准备器 ServletAPI过滤器 在所有情况下,您都需要向jsp添加一些代码,以便在页面中输出消息。 这最好是在所有显示消息的页面都使用的平铺布局中完成。Spring interceptor似乎是一个很好的工具,它适合我的需要,所以我将使用它。谢谢

我有一个软件设计问题。我正在寻找SpringMVC应用程序中类似Smarty插件的功能。让我来解释一下这个案子

我正在使用SpringMVC构建一个webapp,我希望系统能够显示应用程序范围内的“系统消息”,如

几个选项:

  • 弹簧拦截器
  • 瓦片视图准备器
  • ServletAPI过滤器
在所有情况下,您都需要向jsp添加一些代码,以便在页面中输出消息。
这最好是在所有显示消息的页面都使用的平铺布局中完成。

Spring interceptor似乎是一个很好的工具,它适合我的需要,所以我将使用它。谢谢