2

I am new to web design and am having some problems , one of them (which is killing me ) is that I can not link the css my JSP page . My problem is " simple " : 404 NOT FOUND in the css file.

Actually I got the code below : < % @ include file = " ../../ css / bootstrap.min.css " % > < / style> However , the q I understand , this is a code that means " brute force " pq copy all css to the HTML page .

I've tried the following methods :

- < Link href = " $ { } pageContext.request.contextPath /css/teste.css " rel = "stylesheet " type = "text / css " >

- < % @ Taglib prefix = " fmt " uri = " http://java.sun.com/jsp/jstl/fmt " % >
< % @ Taglib prefix = " c " uri = " http://java.sun.com/jsp/jstl/core " % >
...
<link href = " < c : url value = " / css / teste.css " / > " rel = "stylesheet " >
Bezzi
  • 260
  • 3
  • 15
  • yes,I thought it'd be nice to use new front end stuff with v raptor –  Sep 24 '14 at 18:40
  • 1
    I see a lot of people having problems with css3 and vraptor,I'm not sure if there is a real connection between that but it's nice to investigate that – Bezzi Sep 24 '14 at 18:53

1 Answers1

0

Create a folder inside webapps and call it resource you create folders for your css , js or images . To use, simply do:

<link rel="stylesheet" href="<c:url value="/resources/css/yourfile.css"/>">  
Bezzi
  • 260
  • 3
  • 15