Hi All,
Here we can see how to configure tiles with the new Struts2 Maven project. For struts2-tiles-plugin we have to add the following dependencies.
After that we can go for web.xml configuration. We have to add the tiles context loader and a tiles listener and use the following filter,
In you struts.xml create a type for tiles,
create an xml file named tiles.xml which u have mentioned in web.xml
Thats it create the files according to tiles.xml.
Then clean the target dir and give mvn install in online mode.
Then start the server, Enjoy..
Here we can see how to configure tiles with the new Struts2 Maven project. For struts2-tiles-plugin we have to add the following dependencies.
After that we can go for web.xml configuration. We have to add the tiles context loader and a tiles listener and use the following filter,
In you struts.xml create a type for tiles,
create an xml file named tiles.xml which u have mentioned in web.xml
Thats it create the files according to tiles.xml.
Then clean the target dir and give mvn install in online mode.
Then start the server, Enjoy..
No comments:
Post a Comment