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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:22:17+00:00 2026-05-30T10:22:17+00:00

I have a spring MVC based web application running on Tomcat 7.0. We are

  • 0

I have a spring MVC based web application running on Tomcat 7.0. We are also using Tiles framework in the application.

Below is the code for my layout page. In the page I have included some CSS files and javascript files.

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Application</title>

        <!-- CSS Files -->
        <link type="text/css" href="<c:url value='/resources/css/themes/base/jquery.ui.all.css'/>">
        <link type="text/css" href="<c:url value='/resources/css/styles.css'/>" />

        <!-- Javascript Files -->       
        <script src="<c:url value='/resources/scripts/jquery/jquery-1.7.1.js'/>"></script>
        <script src="<c:url value='/resources/scripts/jquery/ui/jquery.ui.core.js'/>"></script>
        <script src="<c:url value='/resources/scripts/jquery/ui/jquery.ui.widget.js'/>"></script>
        <script src="<c:url value='/resources/scripts/jquery/ui/jquery.ui.button.js'/>"></script>
        <script src="<c:url value='/resources/scripts/common.js'/>"></script>

        <script>
            $(function() {
                $("input:submit, a, input:button", ".buttonDiv").button();
                $("a", ".buttonDiv").click(function() {
                    return false;
                });

            });
        </script>
    </head>
    <body>
        <div id="container">
            <div id="header">
                <tiles:insertAttribute name="header">
                    <tiles:putAttribute name="menu"
                        value="/WEB-INF/jsps/common/menu.jsp" />
                </tiles:insertAttribute>
            </div>
            <div id="body">
                <tiles:insertAttribute name="body" />
            </div>
            <div id="footer">
                <tiles:insertAttribute name="footer" />
            </div>
        </div>
    </body>
</html>

Javascript files are loaded properly but not the CSS files.

Also I have foloowing code in mY spring configuration file.

    <!-- Handles HTTP GET requests for /resources/** by efficiently serving 
    up static resources in the ${webappRoot}/resources/ directory -->
<mvc:resources location="/resources/" mapping="/resources/**" />

I am using IE7 browser. I do not have any other browser to test.

Is there something wrong with the way I am including my CSS files?

Please help.

  • 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-30T10:22:19+00:00Added an answer on May 30, 2026 at 10:22 am

    try this to add your css file

    <link href="../../Content/Site.css" rel="stylesheet" type="text/css"  />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Spring MVC to build my web application, and I have a
I have a java web application based on Spring MVC. The task is to
I'm building a MVC web application (using the Spring MVC framework), and I'm a
I have a web application running with Spring Webflow, Tiles and JSP. Currently all
I have a Spring MVC based Web Application with Hibernate. Following is the directory
I have a Spring MVC based web application. There are many custom tags written
I have a Spring Web MVC application that I'd like to serve a large,
I have an existing, fully functional Spring web application based on Spring 2.5.6 -
I have my web application written in Spring MVC. It is quite simple app
My spring web application is using ajax with spring, and it based in general

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.