Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Struts2 with Tiles 2.1 or 2.2

Tags:

struts2

tiles2

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 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

like image 803
bozo Avatar asked Feb 03 '10 09:02

bozo


2 Answers

I suggest you to use Sitmesh decoration framework for strut2

like image 148
Vinayak Bevinakatti Avatar answered Nov 01 '22 12:11

Vinayak Bevinakatti


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.

like image 31
doctrey Avatar answered Nov 01 '22 13:11

doctrey