COMP 321: Application Server Programming
Test 2 – Winter 2011

March 18, 2011

Your mission is to develop a simple JSP templating framework. Your framework should support a single“template” page, which should contain the “skeleton” for the entire web application. The template page should have placeholders for the header, footer, and content. This is an example of a template page:

              <html>
                <head>
                  <t i t l e >Some Title ... </ t i t l e >
                  <<insert -header>>
                </head>
                <body>
                  <<insert -content>>
                   . . .
                  <<insert -footer >>
                </body>
              </html>

After you develop the templating framework, you are to demonstrate its use by creating a simple web application on the topic of your choice. Your web application should have at least three different pages and a single controller servlet. Each page should use the same template, header and footer files; the only thing that should change is the content. (a good example of the web application utilizing a templating framework is a personal home page, with separate pages for bio, home, links, etc.)

You are free to implement the solution any way you want, but please keep the following guidelines in mind:

Good luck!