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 6356469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:58:09+00:00 2026-05-24T22:58:09+00:00

currently I’m using a JSP templating system which uses this example’s lib (/WEB-INF/tlds/template.tld). I’m

  • 0

currently I’m using a JSP templating system which uses this example’s lib (“/WEB-INF/tlds/template.tld”).

I’m not even sure how it’s called.

Anyway it seems like it’s not too developed, it makes problems with form POST method, I have no idea who made it (just found it) and I’ve heard about Apache’s Struts & Tiles.

I’m not even sure that Struts does what I’m talking about.

Down to business:
A page in my site has this JSP content, that utilizes the template:

<%@ taglib uri="/WEB-INF/tlds/template.tld" prefix="template"%>
<template:insert template="/WEB-INF/main_template_page/template.jsp">
    <template:put name="title" content="Title here" direct="true" />
    <template:put name="content" content="/content.jsp" />
</template:insert>

The template is:

<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='template'%>
<html>
<head>
<title>
    <template:get name='title' />
</title>
<link type="text/css" rel="stylesheet" href="/styles.css" />
</head>

<body>

    <div id="div_header">
        <div class="content">
            <%@include file='header.html'%>
        </div>
    </div>

    <div id="div_content">
        <template:get name='content' />
    </div>

    <div id="div_footer">
        <%@include file='footer.html'%>
    </div>

</body>
</html>

So as you see each page gives the template some parameters and it all works nice.

Is there a “well-established” system that does that? I’m sure there is; What its name? Which would you use for pretty much simple pages, but, has to support dynamic ones with code (JSP).

  • 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-24T22:58:09+00:00Added an answer on May 24, 2026 at 10:58 pm

    Quaternion is right that Tiles and SiteMesh are both pretty popular decoration frameworks. You can also use JSP .tag files to achieve this, as shown in this answer.

    I’ve never used SiteMesh, but I’ve worked on several projects at work that use Tiles and I don’t care for it — to me it’s just an extra layer that doesn’t add enough bang-for-my-buck. Tag files have the added bonus of being a built-in part of JSP.

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

Sidebar

Related Questions

Currently I have a web service, which loads up any plugins located within its
Currently I'm doing some unit tests which are executed from bash. Unit tests are
Currently, I am developing a product that does fairly intensive calculations using MS SQL
Currently I am debugging the signing of an Android app. And this would be
Currently i'm having trouble using two functions in my -(void)viewDidLoad , both of these
Currently I am loooking for a way to develop an algorithm which is supposed
Currently we use log4net of version 1.2.10.0 and we should start using some 3rd
Currently, if I go to my site... example.com OR example.com/index.php ...I am redirected to...
Currently we are using Trac . Tickets are good for tracking tasks and related
currently we have quite a chunky auditing system for objects within our application, the

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.