Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:53:20+00:00 2026-06-10T19:53:20+00:00

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>

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:53:22+00:00Added an answer on June 10, 2026 at 7:53 pm

    You can definitely add a filter,

    try – responseheaderfilter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Java EE application page, I have header.jsp, a side menu.jsp, a body.jsp
I'm trying to get http://localhost:8080/test to map to the index.jsp page. The jsp file
I have a JavaEE application that needs to access a file in order to
I have created MVC application. I want to include js or css file into
I have this a when launching(clean build and run) my JavaEE web application :
Following this tutorial http://netbeans.org/kb/docs/javaee/maven-osgiservice-cdi.html I have managed to create a simple OSGI bundle and
I have following web-fragment.xml in a jar file, under META-INF/ It seems I cannot
we have an old JavaEE Application, which we want to port from the old
I have a JavaEE 1.4 web application running on WebSphere Application Server 6.0. In
I already have an enterprise Java EE application. I want expose some of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.