How to make a web page template in JSP

Posted on 2006-05-04
Last Modified: 2010-04-01
I am creating a  web application(using Java, JSP, Servlets) in which I need a layout that should be consistent within all the pages of the applications (menu to the left, header on top, ...) etc

similar to this website

As you see in the example only the center portion changes while the rest rest of the page doesn't even move

Any help will be greatly appreciated.

Question by:royalcyber
    LVL 11

    Expert Comment

    Use Sitemesh

    it's a very good templating framework and stable too. Let us know if u have any questions.

    Or Use Tiles. But i m not in favour of Tiles.
    LVL 11

    Expert Comment

    Good article on Sitemesh (this link does tell why sitemesh over tiles)

    Author Comment

    but i need to iclude .jsp files in the templates. So id there a way to design the template in JSP

    LVL 11

    Accepted Solution

    In sitemesh, u need not to include the jsp files in the template.
    LVL 1

    Assisted Solution

    you can use Dreamweaver and you can explore something of <iframe> tag

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now