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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:16:27+00:00 2026-05-18T02:16:27+00:00

Here is my problem: My Spring MVC website is going to rely a lot

  • 0

Here is my problem:

My Spring MVC website is going to rely a lot on external JavaScripts/CSS/Images. This domain needs to be configurable. Also, I’d like to be able to throw pieces such as my header and footer into JSPs that can be included. When adding an image to a JSP, I need to be able to generate a link to the image using the configurable external static content domain.

My Solution so far:

So far I’m thinking I can use a combination of JSP templates which will load configuration classes which output my configuration values (so that the JSPs can use these configuration values). I guess the only problem I really have with this is that now I require all of my JSPs to import the template and then also import those configuration classes to access the static content URL.

My Question:

Does my solution outlined above make sense? Is it really the best approach? What have people generally done to solve this problem? What other solutions are available to abstracting and reusing JSP components?

Notes:

  • I’m using Spring MVC 3… I’m a bit new to Spring and MVC in general
  • This isn’t an overly large website…
    nor will it be used in a full
    production environment.
  • 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-18T02:16:28+00:00Added an answer on May 18, 2026 at 2:16 am

    Spring MVC is excellent on the C part, pretty good on the M, but but a bit of a no-show on the V. It delegates all view responsibilities to other frameworks, usually vanilla JSP/Freemarker/Velocity. This is fine in most cases, since those view frameworks provide plenty mechanisms for assembling composite views. They’re pretty basic, though.

    However, sometimes you want something more rigorous, which is where the likes of Tiles or Sitemesh come in. These frameworks specialise in assembling web views from component parts, and are mostly agnostic of the MVC framework that they work with.

    Spring MVC will neither help nor hinder your use of these frameworks, and they integrate with each other pretty well (SiteMesh does, anyway, I’m not that familiar with Tiles, but I hear it does the job well).

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

Sidebar

Related Questions

This is in reference to the question previously asked The problem here is, each
i'm trying to use OutputCaching in my ASP.NET MVC website. Problem is, when i
I have a Spring MVC application and a problem with JUnit tests combined with
I have problem using annotated validation in spring 3 mvc. I´m not sure if
I've got a problem here with an MSI deployment that I'm working on (using
Just a small SVN problem here. I setup my own SVN server Setting up
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
I'm having a bit of a problem here. We have 2 urls let me
I've got a Schroedinger's Cat type of problem here -- my program (actually the
Here's a problem I ran into recently. I have attributes strings of the form

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.