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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:31:38+00:00 2026-06-05T07:31:38+00:00

I am trying to build an java web application using struts2 and tiles in

  • 0

I am trying to build an java web application using struts2 and tiles in Google App Engine. Below is my tiles.xml file

<!DOCTYPE tiles-definitions PUBLIC
   "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
   "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>

<definition name="baseLayout" template="BaseLayout.jsp">
    <put-attribute name="title" value="" />
    <put-attribute name="header" value="Header.jsp" />
    <put-attribute name="body" value="" />
    <put-attribute name="footer" value="Footer.jsp" />
</definition>

<definition name="/welcome.tiles" extends="baseLayout">
    <put-attribute name="title" value="Welcome" />
    <put-attribute name="body" value="Welcome.jsp" />
</definition>




</tiles-definitions>

But when I run the app,I am not getting any error. it just prints “Header.jsp Welcome.jsp Footer.jsp”. It does not show the actual jsp pages. Please advise on what needs to be done.

Thanks in advance

Regards

  • 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-05T07:31:41+00:00Added an answer on June 5, 2026 at 7:31 am

    You forgot to place "/" with your included jsp files, hence instead of fetching the content of relevant files it is displaying them as text.

    Correct format should look like below:

    <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
    <tiles-definitions>
        <definition name="baseLayout" template="BaseLayout.jsp">
            <put-attribute name="title" value="" />
            <put-attribute name="header" value="/Header.jsp" />
            <put-attribute name="body" value="" />
            <put-attribute name="footer" value="/Footer.jsp" />
        </definition>
    
        <definition name="/welcome.tiles" extends="baseLayout">
            <put-attribute name="title" value="Welcome" />
            <put-attribute name="body" value="/Welcome.jsp" />
        </definition>
    </tiles-definitions>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a 4-tier Web-Application in Java. I'm using the Hibernate Framework
I'm trying to build a java application with gcj but getting the error below.
I am trying to build a search engine using java and the lucene API
I'm trying to build my Flex/Java web app from within IntelliJ rather than have
I am trying to package my web application into war file using Ant. When
I am trying to build simple web app using primefaces 3.0.M2 version. I am
I am trying to build an e-commerce java web application, I am running into
I'm using maven to build a Java web application which is run in Tomcat.
I am trying to build a system using Java and MySQL 5.1.63 GA where
I'm using java with eclipse on windows 7, and I'm trying to build 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.