1

I have a CSS file ("style.css") that I want to embed as inline CSS in a JSP. How can this be done?

I have tried the following, but the CSS file is not imported:

<style>
  <jsp:include page="style.css" />
</style>

Thanks!

Donald T
  • 10,234
  • 17
  • 63
  • 91
  • Ah I see you updated with the code you were using. Don't quote me on it, but I think `` only really works with other JSP files. – Ben Jul 06 '11 at 16:19

1 Answers1

2

This sort of directive should work, but you will need to be sure of the path you're using:

<%@ include file="/path_to/your_css_file.css" %>
Ben
  • 7,548
  • 31
  • 45