External files (css, js) in embedded jetty

Posted by user1938185 on Stack Overflow See other posts from Stack Overflow or by user1938185
Published on 2014-06-06T21:23:34Z Indexed on 2014/06/06 21:25 UTC
Read the original article Hit count: 96

Filed under:

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?

© Stack Overflow or respective owner

Related posts about embedded-jetty