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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:16:02+00:00 2026-05-20T15:16:02+00:00

I am learning to use tiles plug in in Struts 1.3 . I have

  • 0

I am learning to use tiles plug in in Struts 1.3 .

I have created the layout.jsp as follows :

   <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
            <title>Layout Page</title>
        </head>

        <body>
            <table width="90%" border="0">
                 <tr>
                    <td><tiles:insert attribute="header" /></td>
                </tr>
                <tr>
                  <td><tiles:insert attribute="content" /></td>
                </tr>
                <tr>
                 <td><tiles:insert attribute="footer" /></td>
                </tr>
        </table>

        </body>

    </html>

My question that do the header.jsp ,footer.jsp and content.jsp need to have a page directive and a full html-head-body structure individually ??

  • 1 1 Answer
  • 1 View
  • 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-20T15:16:02+00:00Added an answer on May 20, 2026 at 3:16 pm

    Your tiles will be parts of the entire HTML file that will be generated from putting them all together along with the layout.jsp.

    That means that the tiles must only contain the markup for which the tile is a placeholder. In your case you don’t need to have full HTML-HEAD-BODY content. In the code you posted, the tiles are fragments of a page, not entire pages.

    You will still need page directives and taglib declarations inside the header.jsp ,footer.jsp and content.jsp files as they are processed before the result they generate is placed inside the layout.jsp.

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

Sidebar

Related Questions

I am learning to use mysql for rails apps, and I finally have been
I have a website with a URL like: http://mysite.com/this-is-a-page and then I use that
I start learning some java concurrency concept ans put in use. But one of
Hi I have started learning python and want to use it to do something
I'm learning to use vlad the deployer and I've got a question. Since I'm
I'm learning to use raw sockets, and im trying to prase out the tcp
I am learning to use dependency injection with ninject. Most of the properties and
I am learning to use xmlhttprequest/AJAX. In this sample code from w3schools, I do
I'm interested in learning to use OpenGL and I had the idea of writing
I am using [actually learning to use] the Lua C api. I'm new to

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.