struts 2、sitemesh、urlrewrite configuration sequence should be like below:
1>struts-cleanup:
2>sitemesh
3>UrlRewriteFilter This should be after sitemesh,or the pages after rewrote can not be renderred by sitemesh.
4>struts2 FilterDispatcher
本文详细介绍了Struts2、Sitemesh及URL重写组件的配置顺序,确保了页面重写后仍能被Sitemesh正确渲染。正确的顺序为:首先清理Struts2,接着加载Sitemesh,然后进行URL重写,最后由Struts2的FilterDispatcher处理。
struts 2、sitemesh、urlrewrite configuration sequence should be like below:
1>struts-cleanup:
2>sitemesh
3>UrlRewriteFilter This should be after sitemesh,or the pages after rewrote can not be renderred by sitemesh.
4>struts2 FilterDispatcher
7961

被折叠的 条评论
为什么被折叠?