When trying to extract the content of a script or style tag into a separate file using Refactor -> Extract Include File, it's always done as a jsp include (.jspf). A .js or .css is what I would expect and need (at least to have the option). It works fine when working in .html files but not for .jsp files.
Put the content below in a .jsp file to reproduce the issue:
<html>
<head><title>Foo</title>
<style type="text/css">
div#bli {
color: crimson;
background-color: gray;
font-weight: bold;
}
</style>
</head>
<body>
<div id="bli">Hello</div>
</body>
</html>