Yea, making an empty index.html file is what I am thinking of doing. To bad there isn't a better way....

...maybe I will make a filter or use a url rewrite servlet filter..... hmmmmmm.

Any one else have an idea?

Thanks,
David



Andrew Robinson wrote:
How is your faces mapped? (*.jsf style or /faces/* style)

The welcome page in the servlet spec is based on the presence of the
file in the file system. So therefore, if your welcome file is
index.htm, the server will try to find index.htm on the file system
before forwarding the call. This causes a problem in the *.jsf
(extension) mapping.

The "hack" is to create an empty file (say via touch).

/folder/index.xhtml
/folder/index.jsf

Where index.jsf is an empty file and index.xhtml is the real view.

Then just add "index.jsf" to your welcome file list.

A pain. It would be nice if there was a way to override this behavior
in the servlet spec, but I was unable to find a way.

-Andrew



On 4/21/06, David Schlotfeldt <[EMAIL PROTECTED]> wrote:
  
When a request comes in to
http://localhost:8080/test.com/
I want the request to be handled as if it was
http://localhost:8080/test.com/index.html

I am using facelets and the actual file there is caleld
http://localhost:8080/test.com/index.xhtml   <- NOTE the x

How do i get it to server the page?

Thanks a lot!
David


    

  

--

David Schlotfeldt
EMAIL [EMAIL PROTECTED]
WEB www.plaudit.com
PHONE 651.646.0696
FAX 651.917.0600
ADDRESS 2470 University Ave. W.

St. Paul, MN 55114

begin:vcard
fn:David Schlotfeldt
n:Schlotfeldt;David
org:Plaudit Design
adr:;;2470 University Ave. W;St. Paul;MN;55114;USA
email;internet:[EMAIL PROTECTED]
tel;work:651-646-0696
tel;fax:651-917-0600
url:http://www.plauditdesign.com/
version:2.1
end:vcard

Reply via email to