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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:26:47+00:00 2026-05-31T15:26:47+00:00

I have the simplest Tiles configuration in my Spring MVC web app: <!– Default

  • 0

I have the simplest Tiles configuration in my Spring MVC web app:

<!-- Default Main Template -->
<definition name="mainTemplate" template="/WEB-INF/views/main.jsp">
    <put-attribute name="title" value="My title" type="string" />
    <put-attribute name="header" value="/WEB-INF/templates/header.jsp" />
    <put-attribute name="body" value="/WEB-INF/templates/blank.jsp" />
    <put-attribute name="footer" value="My footer" type="string" />
</definition>

<definition name="home" extends="mainTemplate">
    <put-attribute name="body" value="/WEB-INF/templates/home.jsp" />
</definition>

<definition name="scadenze" extends="mainTemplate">
    <put-attribute name="body" value="/WEB-INF/templates/scadenze.jsp" />
</definition>

My standard “/home” mapping controller returns a new ModelAndView("home"); and all goes fine.

Now I want to put a $("#header").load("/pathtoheadercontrollerurlmapping"); for reloading one part of my page the ajax way.

What does my controller method have to return? How can I return simply my header.jsp and achieve my goal?

  • 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-31T15:26:49+00:00Added an answer on May 31, 2026 at 3:26 pm

    One way which i am thinking is you should not bring the whole jsp in that ajax call rather you should bring a json string with which you can build the html in the jquery part. The json will have the values from the server side (may be from database or file or whatever which is dynamic). After getting the json reponse, you should mainpulate that in the jquery ajax response and build the html context and set it back in the header. Just a thought.

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

Sidebar

Related Questions

I have the simplest code that I want to separate in three files: Header
I have no idea how to describe my problem. It is the simplest way
What's the simplest way to code against a property in C# when I have
For TDD you have to Create a test that fail Do the simplest thing
I have the simplest problem to implement, but so far I have not been
I have a simple table based queue system. In its simplest form, it consist
I have a simplest form of an application, in which I am showing a
I have a client whose desired Web UI is graphically intense; we would like
I have the simplest of tasks that I can't figure out how to do
I have the simplest table in the world, for looking up lat/lng values for

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.