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

  • SEARCH
  • Home
  • 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 8069401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:00:30+00:00 2026-06-05T13:00:30+00:00

In my web application I use Java Servlets and Freemarker Templates to generate the

  • 0

In my web application I use Java Servlets and Freemarker Templates to generate the HTML output. After I have already set up several template files I would like to add a navigation bar throughout all templates. I would like to avoid adding the necessary HTML code to each template file, since when I change it I have to do it all over again.

What is best practice in this case? The only solution I have thought of is defining the navigation bar in another text file and add it through template processing, something like this:

<html>
<head>
   <title>...</title>
</head>
<body>
${navigationBarConent}
...
</body>
  • 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-06-05T13:00:31+00:00Added an answer on June 5, 2026 at 1:00 pm

    Mahoni,

    If I understand you correctly, this may help.

    http://richardbarabe.wordpress.com/2009/03/19/freemarker-a-brief-example/

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

Sidebar

Related Questions

I have a Java-JSF Web Application on GlassFish, in which I want to use
I came across a fairly old Java web application that made use of servlets
I have a server behind a firewall. It runs a web application (Java servlets
I have a web application written using Java servlets. I am using Tomcat 7
I am developing an asp.net web application. I need to use java script to
I'm working on a project to convert an existing Java web application to use
We use Tomcat for our java web application. There is a properties file under
I am running a web application using Tomcat and Java Servlets, JSP's, etc. I
I use jsp and servlets in my web application. i need to store passwords
In a java web application (servlets/spring mvc), using tomcat, is it possible to run

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.