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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:15:16+00:00 2026-05-23T14:15:16+00:00

Possible Duplicate: JSP can't find stylesheet Tomcat7, spring framework3, jstl 1.2. Hierarchy: WEB-INF/jsp WEB-INF/styles

  • 0

Possible Duplicate:
JSP can't find stylesheet

Tomcat7, spring framework3, jstl 1.2.
Hierarchy: WEB-INF/jsp WEB-INF/styles

I link stylesheet in my JSP file, which is located in WEB-INF/jsp: But it doesn’t work! When i open my application there is no styles, and writter by Tomcat:

Apache Tomcat/7.0.14 - Error report
HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/7.0.14

So i put my styles folder out of WEB-INF and it still doesn’t work!
Also, images too don’t work, but my images folder not in WEB-INF and their path is corect…
What is the problem?

  • 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-23T14:15:17+00:00Added an answer on May 23, 2026 at 2:15 pm

    In Spring I put my resources in a folder outside of web-inf. Like this:

    enter image description here

    Web.xml

    <!-- Processes application requests -->
        <servlet>
            <servlet-name>appServlet</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <init-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
    

    Then in my servlet-context.xml (configuration file specified in web.xml) file I exclude the resources directory from being managed by the dispatcher, so URLs prefixed with resources/ are not picked up by the dispatcher and attempted to be routed to an appropriate controller.

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

    In my jsp I can then access resources as normal:

    <link rel="stylesheet" type="text/css" href="/skillsmanager-ui/resources/css/reset.css" /> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to internationalize a java web application I'm new in JSP technology
Possible Duplicate: Can anyone recommend a simple Java web-app framework? I want to know
Possible Duplicate: How can I combine multiple rows into a comma-delimited list in Oracle?
Possible Duplicate: Populating child dropdownlists in JSP/Servlet JSP: drop down list 2 depends on
Possible Duplicate: What are the stages of compilation of a C++ program? I find
Possible Duplicate: Can a Bash script tell what directory it's stored in? Is there
Possible Duplicate: C# driver development? I would like to know if I can do
Possible Duplicate: passing value to JSP via javaScript i want to pass value of
Possible Duplicate: how to display data obtained from dao in jsp hi i able
Possible Duplicate: How to retrieve and display images from a database in a JSP

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.