Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JSP و CSS
JSP و CSS [message #1832580] Mon, 21 September 2020 10:23
Elliott Jonasson is currently offline Elliott JonassonFriend
Messages: 1
Registered: September 2020
Junior Member
I want to write a Spring MVC project.
In the web directory I created a directory called assets and then a directory called css and put all my css files in it
Now when I use <link rel = "stylesheet" href = "../ assets / css / style.css"> on the JSP page in the head tag, my style does not apply to the form
I also used the <link rel = "stylesheet" href = "<c: url value =" / assets / css / style.css "/>"> command, but my css did not work again
In the spring-servlet.xml file I also added <mvc: resources mapping = "/ assets / **" location = "/ assets / css /" /> but it did not work
(I did not use maven)
Is there a solution?
Previous Topic:TestNG installation issue
Next Topic:Could not load SWT library
Goto Forum:

Current Time: Tue Mar 02 21:48:20 GMT 2021

Powered by FUDForum. Page generated in 0.02658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top