in my tutorial i have tiles-def.xml file in WEB-INF folder
i dont understand this tiles-def.xml file.
so i have a question.
question is >>>>>
in the above tiles-def.xml we have
i thought siteLayout.jsp is a simple JSP file. but when i opened this file, i am surprised to see the [B]<tiles:insert> tag in this JSP! this is not a simple JSP...lots of tiles:insert tag in it!
look here i am providing the code for the siteLayout.jsp
look, so many tiles tag are crowded in this JSP!! does it mean, my other JSP's (which are in the tiles-def.xml) e.g bookList.jsp,index.jsp etc etc should also contain <tiles:insert> tag in them as the above code ?
or , siteLayout.jsp is a special kind of JSP which only can have <tiles:insert> tag in it and no other JSP can have <tiles:insert> tag in them.
Not a dead forum and not a silly question...but I doubt Sunday is the forum's busiest time.
What you are seeing is pretty common. I have worked on a few Struts based projects that had a common base jsp that included common tiles such as navigation, headers and footers along with a configurable content section. In fact what you are seeing is the power of tiles. The welcome and booklist pages extend from base.definition, so they will both have the same general look with a different body.
It is likely that the other jsp files do not contain tiles:insert tags, but they can.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop