I have this servlet based web application project in eclipse and want to append some html tags like <script src="Chart.js">
.
The folder structure is:
- C:/apache-tomcat-7.0.53/
- my workspace is in D:/../../workplace/CpdApplication/src/cpd/MyServlet.java
- cpd contains: MyServlet.java, Chart.js and other files.
- CpdApplication/WebContent/META-INF/web.xml
I have some path problems, and I can't resolve them, I searched over and over again and still not working, I get
a 404 (Not Found) for http://localhost:8080/CpdApplication/Chart.js
.
The problem is when I want to append <script src='Chart.js'></script>
, Tomcat cannot resolve the Chart.js
static file.