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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:36:10+00:00 2026-05-25T17:36:10+00:00

I found this in an existing Tiles configuration. Tiles is being used with SpringMVC.

  • 0

I found this in an existing Tiles configuration. Tiles is being used with SpringMVC.
Can someone explain what this does?

Basically it intercepts requests for all views of the form page.* and displays a static jsp page. What I can’t figure out is how? What does {1} do? Does it just replace the content represented by *?

If I want to display a jsp called about.jsp what view should the controller request? page.about.jsp or page.about?

Also, what is layout.page.{1} pointing to? I can’t find a layout folder under my jsp folder.

<!-- Static pages -->
<definition name="page.*" extends="layout.main">
    <put-attribute name="titleKey" value="title.{1}"/>
    <put-attribute name="body" value="layout.page.{1}"/>
</definition>

The Layout definition is as follows:

<definition name="layout.main" template="/WEB-INF/templates/mainLayout.jsp"
            preparer="com.company.modules.web.tiles.ABTestViewPreparer">
    <put-attribute name="titleKey" value="Company Archetypical Webapp"/>
    <put-attribute name="backToResults" value="" />
    <put-attribute name="metaDesc" value="meta.description"/>
    <put-attribute name="metaKeywords" value="meta.keywords"/>
    <put-attribute name="header" value="/WEB-INF/templates/header.jsp"/>
    <put-attribute name="searchBar" value="/WEB-INF/templates/blank.jsp"/>
    <put-attribute name="nav" value="/WEB-INF/templates/blank.jsp"/>
    <put-attribute name="ads" value="/WEB-INF/templates/blank.jsp"/>
    <put-attribute name="body" value="/WEB-INF/templates/blank.jsp" />
    <put-attribute name="footer" value="/WEB-INF/templates/footer.jsp"/>
</definition>

Any help is appreciated, I’m trying to figure it out from the Tiles documentation but it’s just not clear whats going on and I don’t want to hack away unless I know what I’m doing since I may not be able to revert to the original code.

  • 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-25T17:36:11+00:00Added an answer on May 25, 2026 at 5:36 pm

    {1} gets replaced by the wildcard value
    for example
    page.FOO, {1} gets replaced with FOO

    So if an action sent a user to page.FOO
    titleKey would resolve to whatever title.FOO is in the properties file.

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

Sidebar

Related Questions

I found this: Changing Compiler to llvm-clang on existing iPhone Project But that does
How can I import existing Blackberry projects into eclipse? I found this development guide
I've been looking for an existing answer to this question, but haven't found one.
found this regex: insert every 10 characters: $text = preg_replace(|(.{10})|u, \${1}. , $text); can
All, I have to redesign an existing logging system being used in web application.
I am working on a existing code, where I found this piece of code
I found this question, but the one answer was basically, you wouldn't want to
I already found this existing question Is this possible in XHTML: tags in a
I'm trying to modify existing perl script to support geocoding. Found this module for
I've got a trait that looks like this (some further information can be found

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.