Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 913725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:36:22+00:00 2026-05-15T17:36:22+00:00

I am designing a small website using HTML + JSP. This is my first

  • 0

I am designing a small website using HTML + JSP.

This is my first time using JSP, though previously I have used PHP to make pages. One thing i found was that when i was making separate pages, i was copy + pasting the layout code of the site into each page, and then adding the content. This seems extremely inneficient, and I was wondering what is the most common practice for doing this?

One idea I had was to have a main index.jsp page that contains the layout code, and then use GET to pass a new page reuest to index.jsp. So to go to the “products” page you would type index.jsp?page=products, and a case statement in the index.jsp file would print the correct content.

I am a beginner in web design, so i would really appreciate any info or links on this topic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:36:22+00:00Added an answer on May 15, 2026 at 5:36 pm

    A common (and simple) approach is to break your HTML up into commons sections (header, footer, sidebar, etc.). You then put these sections in their own .jsp file and include them on all pages:

    • header.jsp: contains all header markup
    • footer.jsp: contains all footer markup
    • sidebar.jsp: contains all sidebar markup

    That way if you ever need to modify one of the common sections, you only need to update the included .jsp, rather than all pages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, i'm designing a small affiliate system using PHP and Neo4J in order to
I am designing a Point-Of-Sale system for a small shop. The shop just have
I'm fairly new to jQuery and css, and I'm designing a small website mostly
I am designing a website for a small business (landscaping, tree removal, etc) owned
I have a small database that I need help designing. I have a VB.NET
I am designing a small website where user register and pay there monthly fee,
I'm currently designing a small website and I'd like to implement the forgot your
I'm currently designing a small application in which I have: - 1 menu (graphic
I am designing a small webpage targeted for the iPhone/iPod touch. I have a
I've just finished designing a small android app and have now come to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.