My project is to build a online video retailer system (of course just simulation, not for real).
I have been thinking about this for days and already made some researches. According to the requirements, this project must be built by J2EE architecture, therefore the majority of the web pages must be with the .jsp type.
Thinking about the design, I found it pretty useful if you could define a header.jsp and footer.jsp at first and then we you have another page, just use the JSP include tag, as the following sample:
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>This is another page!</title>
- </head>
- <body>
- <jsp:include page="header.jsp" />
- <!-- The main contents go here! -->
- <jsp:include page="footer.jsp" />
- </body>
The reason for this is that I am having some good flash files, I made them for the header & footers, so I don't want to reload them every time the content section changes, in order to give the users a consistent view .
BTW, if I want to use an iframe for the content section to divide the contents vertically apart from the menu navigation bar, is it good practice? I learned that using traditional frames are in fact too bad for a project.
Any logical or detailed suggestion will be welcomed and appreciated.
If this is too hard to achieve this functionality, I will go back to use some static images for the headers and footers XD...