T
T
Timur Sergeevich2016-01-11 20:01:33
css
Timur Sergeevich, 2016-01-11 20:01:33

How to set up Tomcat?

There are other folders in the web folder that have js css!
Therefore, when I load index.html, scripts and styles are not loaded ( 404
Link like localhost:1234/test/jquery.js
I understand that /test is considered as a serverlet, but it is not! How were all the files stored on the web
accessible by URL? ?
10e0b9a7d59b44f7a9d14fb5e17110d8.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Sergeevich, 2016-01-11
@MyAlesya

9dfe127b3cd34e6b8d76094697c90879.png
Strange css styles became available but js still 404

D
Danila, 2016-01-14
@Ke1eth

For assets
For the test

<script type="text/javascript" src="${pageContext.request.contextPath}/test/jquery.js"></script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question