David Newton wrote:I'm not sure why you'd need to create two JSPs for every page: one of the goals of Tiles is to allow for a generic, often application-wide template that includes an action-specific JSP. Are you using XML or JSP configuration?
Maybe if you posted some of your configuration you're not sure about it'd be easier to help--it's not clear to me what issue you're having with definitions, either.
David,
Thank you for the response. I'm a real newbie when it comes to tiles. I guess I'm confused how tiles works in general. I have looked at various examples on various sites, and from what I gathered you had to have 2 JSP pages to make this work.
Here is my problem. I want to have one layout that is added to all the pages on my site. I want to use Struts to fill in the body content area of my layout, but I'm not sure how to do this with Tiles. I don't understand how I can make my web application automatically invoke a template(tile definition in a XML file) after a struts action executes logic and renders a body content page.
I really don't want to post code because I know that it's already wrong. I would much rather find some examples to look at. I hope this makes more sense.