I would like to nest a struts-tile within a struts-tile. Here is what I have now:
What I would like to do is replace the <%@ include %> statement in body.jsp with a <tile:insert> and in the tiles-def.xml <put> "myPackage.jsp" or "myPackageEdit.jsp" in when appropriate. It doesn't make sense to have to create two maybe more separate body.jsp's just to have different <%@ include %>s. Placing the content of body.jsp into Layout.jsp with the <%@ include %> works fine but when I change the <%@ include %> to the <tiles:insert attribute="body" /> and use the tiles-def.xml to <put attribute="body" name="jsp/myPackage.jsp" /> it does not render the page. Is there a way form me to not have to create multiple pages just to have different <%@ include %>s?
Your post bit confusing to me. Just post how it is working now and how you are expecting to work? And It's better idea to create basic template and extend it to new definitions and override the tag's whatever you want. Extending Definitions
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.