I'm a little free today , Build one yourself Java Web project , encounter jsp Introduction in js、css Incorrect file path , So I looked up a lot of information on the Internet , It doesn't solve the problem in the end , therefore , On stackoverflow Found a solution , Here we have to make complaints about the credibility of domestic information , Don't say the , In the future, we will try our best to google Well , Spend some money on one vpn The value of , Life is limited , Saving time .

Let's record the solution :

First , Make sure jsp Introduced jstl:<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>.

The second is the specific quotation , Use <c:url> label :<link href="<c:url value="/resources/css/signin.css"/>" rel="stylesheet">

Notice the project file structure , Of course , It depends on the actual situation , My is :

Use Maven structure Java Web Project time , About jsp Introduction in js、css File path problem . More articles about

  1. Use IntelliJ IDEA and Maven structure Java web Project and package deployment

    Love programming, love sharing , Original article , Reprint please indicate the source , thank you ! http://www.cnblogs.com/fozero/p/6120375.html One . background Now more and more people use IntelliJ IDEA Tool in ...

  2. Myeclipse 10 Maven structure Java Web project

    It mainly introduces how to use Myeclipse 10 structure Maven Web project , About Maven I've omitted the introduction of . Tools / raw material myeclipse apache-maven-3.1.0 Method / step 1 Next ...

  3. Chapter two Maven structure Java Web project

    In this tutorial , We're going to teach you how to create a system based on Spring MVC Of Maven Web Project. The technology used / Tools : 1.Eclipse 4.9 2.Maven 3.6.2 3.Tomcat 8 ...

  4. [ primary ]Jenkins( 7、 ... and )---jenkins The project compilation test is released by maven Built web project

    /** * lihaibo * The content of the article is based on their own work practice . * Copyright notice : Welcome to forward this blog , But please keep the original author information ! http://www.cnblogs.com/horizonli/p/533 ...

  5. Eclipse Of maven Construct a web project , In order to build SpringMVC Project as an example

    http://www.cnblogs.com/javaTest/archive/2012/04/28/2589574.html springmvc demo Example tutorial source code download :http://zuida ...

  6. Use maven Construct a web project

                          Use maven Construct a web project     So let's set up a maven project ( The last section has a detailed process about environment configuration ): 1)--> Right click new,-->project ...

  7. Eclipse In the release Maven Managed Web We can't find the root cause of the class problem and the solution in the project ( turn )

    from :http://blog.csdn.net/lvguanming/article/details/37812579?locationNum=12 Let me write it out front Now it's more and more annoying Eclipse this ...

  8. Solve the problem of using maven Of java web Problems after project import -cannot be read or is not a valid ZIP file

    Solve the problem of using maven Of java web Problems after project import -cannot be read or is not a valid ZIP file   Error problem : Although looking for repository There are ...

  9. 26. Use IntelliJ IDEA Development Java Web Project time , Revised JSP After refreshing, the browser can't display the modified page in time

    from :https://blog.csdn.net/yuxxz/article/details/51318908 Use IntelliJ IDEA Development Java Web Project time , Revised JSP After refreshing the browser can't reach ...

Random recommendation

  1. HappyAA Server deployment notes 1(nginx+tomcat Installation and configuration )

    This is my server deployment notes . The title of the article is " Deployment notes 1" The reason is that after I improved this , There will be " Deployment notes 2"," Deployment notes 3"... Step by step , It is estimated that ...

  2. matchesSelector Match selector expressions sizzle The implementation of the

    Sizzle.matchesSelector = function( node, expr ) {     return Sizzle( expr, null, null, [node] ).leng ...

  3. jquery set focus

    function CheckForm() { var classLevel = $("#classLevel").val(); var re = /^[1-9][0-9]*$/; ...

  4. 2016/09/21 java keyword static

    1.static Method     static Methods are generally called static methods , Because static methods can be accessed without relying on any object , So for static methods , It's not this Of , Because it's not attached to anything , Since there is no object , I can't talk about th ...

  5. RTT operating system

    http://www.rt-thread.org/ Official website RT-Thread RTOS, Developed by some domestic professional developers . maintain . It's not just a Efficient . Stable real time operating system kernel , It is also a software platform for embedded system , ...

  6. C++Vector Usage method

    C++ The built-in array supports the container mechanism , But it doesn't support the semantics of container abstraction . To solve this problem, we should realize this kind of . In standard C++ in , Using the container vector (vector) Realization . The container vector is also a class template . Standard library vector Type uses the required header ...

  7. virualbox build otter

    Preface In order to learn otter, Last we talked about otter Installation of necessary software , Reference resources :virualbox install otter Essential software , Now install otter, Compared to official documents , We try to simplify the installation process . virualbo ...

  8. JS transformation HTML Escape character

    JS transformation HTML Escape character   // Get rid of html label 1 2 3 function removeHtmlTab(tab) {  return tab.replace(/<[^<>]+?& ...

  9. Linux Next, how to check the exact start time of the process

  10. obtain IP Address method

    function getip() {     static $ip = '';     $ip = $_SERVER['REMOTE_ADDR'];     if(isset($_SERVER['HT ...