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 6729995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:21:20+00:00 2026-05-26T10:21:20+00:00

I am using Glassfish 3.1 and all the reference implementations and I got a

  • 0

I am using Glassfish 3.1 and all the reference implementations and I got a question on how I can get Glassfish to see the index.xhtml and render it automatically through JSF, instead of making a index.html and then redirect to index.jsf (which is index.xhtml)? I am just jusing the default mapping in Glassfish (has not added mappings in web.xml) so I can write .jsf in the url field and the xhtml webpages is rendered.

Making a index.html with this: <meta http-equiv="refresh" content="0; url=index.jsf" /> in every new folder is rather cumbersome and it is probably better ways of doing it.

  • 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-05-26T10:21:21+00:00Added an answer on May 26, 2026 at 10:21 am

    Do the following in the web.xml:

    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    
    <welcome-file-list>
        <welcome-file>index.xhtml</welcome-file>
    </welcome-file-list>
    

    It depends on what url-pattern the Faces Servlet is mapped to and whether the request-url matches that pattern and if yes then it invokes the Faces Servlet and the request will be processed by the Faces Servlet.

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

Sidebar

Related Questions

I'm using Glassfish 3 Web profile and can't get http workers to execute concurrently
Using Glassfish, I can setup a string jndi entry: JNDI name: com/xyzcompany/echo/EchoServiceBean/viewName Factory Class:
I'm trying to compile a webservice through NetBeans 6.7 using Glassfish v3 as the
Using Glassfish 3.1 with Eclipselink as JPA provider on board. Got stateless bean with
I'm using glassfish 2.1.1. I've watched a mysterious http/webservice-call handling. It seams an http
Using Sun Glassfish Enterprise server v2.1.1 I am using alternatedocroot via sun-web.xml for my
I am using EJB3 on Glassfish using the default TopLink persistance manager. Within a
I am using netbeans glassfish bundle to create a webservice. I am adding operations
I am using Netbeans 6.8 and Glassfish v3.0. I created an ejb module and
I just installed Glassfish on my Ubuntu server (No GUI) using THIS tutorial. Everything

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.