In JavaEE application.  

I have index.html page as "welcome-file" in web.xml

```
<welcome-file-list>
    <welcome-file>index.html</welcome-file>
</welcome-file-list>

```

**I want to add Http Header into response for index.html**

One way is use index.jsp instead of index.html and add inside an scriptlet:

```
<% response.addHeader("X-Frame-Options", "DENY");  %>

```

Is there any other way?
Is there an possiblility to add some kind of filter  

For example something like:

```
WelcomeFileFilter {
  void filter(HttpServletResponse response) {
    response.addHeader("X-Frame-Options", "DENY");
  }
} 

```

Because I don't want to use index.jsp instead of index.html.