CSS does not load into HTML

Asked

Viewed 74 times

0

Guys, when an exception occurs in doFilter(Filter) the code below is executed:

RequestDispatcher requestDispatcher = request.getRequestDispatcher("maintenance.jsp");
requestDispatcher.forward(request, response);

Page targeting occurs, but HTML referenced css does not occur.

Below is the HTML code of the css reference:

<link rel="stylesheet" href="resources/css/maintenance.css">

I tried with but it didn’t work:

<link rel="stylesheet" href="../resources/css/maintenance.css">

HTML is in the Webcontent folder, css is in Webcontent/Resource/css

Something’s wrong?

  • already put type="text/css" ? if not working with Html5 is required

  • 1

    Yes, but without success.

  • 1

    There’s a difference between WebContent/resource/css and WebContent/resources/css... the resource of the first is in the singular and the second in the plural.

  • Fixing, HTML is in Webcontent folder, css is in Webcontent/Resources/css, typing error.

  • Has your css folder been added in the project path? See in the F12 browser if the . css is being loaded. I believe it is a path problem

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.