开发者

Struts2 with Tiles 2.1 or 2.2

开发者 https://www.devze.com 2022-12-18 18:35 出处:网络
there doesn\'t seem to be a simple way to use Tiles 2.1 or 2.2 with Struts2 with the existing struts2-tiles plugin. I need to use the tiles wildcards functionality in my开发者_JAVA百科 project where t

there doesn't seem to be a simple way to use Tiles 2.1 or 2.2 with Struts2 with the existing struts2-tiles plugin. I need to use the tiles wildcards functionality in my开发者_JAVA百科 project where the tiles.xml became unmaintainable.

Is there any way at all to set up tiles 2.1 or 2.2 with struts2? How?

Thank you,

Bozo


I suggest you to use Sitmesh decoration framework for strut2


As far as I'm aware current struts2 major release ships with tiles 2.0.6. Wildcard support has been added since tiles 2.1 so I'm afraid you can not use wildcards with current version of plugin.
If you want to setup the tiles 2.1+ with struts2 anyway you have to tweak the plugin yourself or wait for the next release.
You also might wanna consider using a preparer in case you want to set some dynamic values to you definition. Hope this helps. you can check this issue for tiles plugin which is unresolved yet.

0

精彩评论

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