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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:05:38+00:00 2026-05-11T04:05:38+00:00

I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the

  • 0

I am using Tiles within my web-application. I have a standard-layout (standard.jsp) within the tiles are used. On top of the standard.jsp are a lot of includes, concerning tag-libraries and such.

Let’s do a simplified example.

standard.jsp:

<%@ page language='java' contentType='text/html; charset=UTF-8' pageEncoding='UTF-8'%> <%@ include file='/WEB-INF/jsp/includes/include.jsp' %>  <html>  <head>     <tiles:insertAttribute name='head' flush='false'/> </head>  <body>     <tiles:insertAttribute name='body' flush='false'/> </body>      </html> 

body.jsp:

<div id='body-div'>     <p>Hello, <c:out value='${forname}' />!</p> </div> 

This prints:

Hello, ! 

In the tiles I would like to use the tags, but it’s not working. It only works, if I add the includes to the tile-jsp.

body.jsp with includes:

<%@ include file='/WEB-INF/jsp/includes/include.jsp' %>  <div id='body-div'>     <p>Hello, <c:out value='${forname}' />!</p> </div> 

This prints:

Hello, John! 

Is there a better way to do this or do I have to add all includes to every jsp used?

  • 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. 2026-05-11T04:05:38+00:00Added an answer on May 11, 2026 at 4:05 am

    You don’t need ALL includes to be present in each of your tiles, but each used tag-library in a tile must specifically be included in the using tile.

    eg : In your example, each tile using the C JSTL library should at least have the <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %> include

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

Sidebar

Related Questions

I'm trying to run my web application using Spring, Hibernate and Apache Tiles. It
I have a web application using PHP and PDO with SQLSRV prepared statements to
I am using Struts Tiles with JSF to have one header, menu and footer
We are developing a web application using asp.net and sql server. We are required
I have a requirement for an ASP.NET web application whereby the same user is
I am using Spring MVC 3.1.x with Tiles 2.2.2 (bootstrapped project with Roo) and
I am trying get Struts 2 and Tiles to work and I am using
I have a variable that I'm using many times in a class and as
Here's the specs: ASP.NET 3.5 using ASP.NET AJAX AJAX Control Toolkit jQuery 1.3.2 web
I am using Web Flow 2.0.7 with Spring MVC and Hibernate. My problem is

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.