External files (css, js) in embedded jetty
- by user1938185
With jetty, you can easily produce "html" response importing external file like :
<head>
<link rel="stylesheet" type="text/css" href="myStyle.css">
<script src="myScript.js"></script>
<head>
However, where do you put myStyle.css and myScript.js, when jetty is embedded?
Especially when the jetty server is a large OpenSource project not written by you?
Is there by any chance a nice out.println(???); in the servlet.doGet that would provide the answer, or something similar?