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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:31:10+00:00 2026-06-10T15:31:10+00:00

I am novice in Spring framework. In my project I use Spring framework and

  • 0

I am novice in Spring framework. In my project I use Spring framework and tiles 2(menu, header, body and footer). I want create dynamic menu and load it at the menu tile (create controller for menu tile). How can I do that? If I skip some posts, please, tell me.

  • 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-10T15:31:11+00:00Added an answer on June 10, 2026 at 3:31 pm

    What you tryed is some kind of component based stuff (like JSF), but this does not work for Spring MVC, because Spring MVC is a command based Web Framework.

    In the end your problem is, that you need to add the model, generated by your Menu-Controller in all models created by any other controller.
    I see two ways to do it.
    postHandle

    • By Hand: in every normal controller method, you add the model for the menu by hand
    • With an HandlerInterceptor: A org.springframework.web.servlet.HandlerInterceptor is a kind of Filter that get invoked (before each controller method is invoked, after the controller method retuns and before the jsp is “invoked”, after the jsp “returns”). So you rewrite your Menu Controller to an HandlerInterceptor that use the postHandle Method (the one between controller and jsp) and add there the model for your menue.

    @see

    • Using Spring Interceptors in your MVC Webapp – Captain Debug’s Blog
    • Spring MVC handler interceptors example
    • Spring Reference Chapter 15.4.1 Intercepting requests – the HandlerInterceptor interface
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with Spring 3.0 framework and still a novice. Can anyone explain
I am an absolute novice at reflection in C#. I want to use reflection
I am a novice to spring dm so pardon my simple question. I downloaded
I was reading Apress Beginning Spring 2 From Novice to Professional , and I
I wanna create spring app which will consists of 2 parts : spring backend
I am trying to setup my php (Zend Framework) project through injection dependence .
JBoss AS7.1.1.Final with Spring 3.1.0 We are using the Spring MVC framework generated by
I am a novice with Regex usage in C#. I want a regex to
Novice question. What collection type should I use to store such structure? Files collection
I use vaadin + spring IOC + google guava eventbus. Resources recommends to use

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.