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
– Vitor Ceolin
Yes, but without success.
– Dener Alencar
There’s a difference between
WebContent/resource/css
andWebContent/resources/css
... theresource
of the first is in the singular and the second in the plural.– Sam
Fixing, HTML is in Webcontent folder, css is in Webcontent/Resources/css, typing error.
– Dener Alencar
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
– rhenesys