GeeCON Prague 2014*
The moose likes JSF and the fly likes JSF file as welcome-file in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "JSF file as welcome-file in web.xml" Watch "JSF file as welcome-file in web.xml" New topic
Author

JSF file as welcome-file in web.xml

Joe Kidd
Greenhorn

Joined: Apr 12, 2009
Posts: 6
Can someone explain to me why I get the following exception when I launch the application?



More specifically, why isn't login correctly mapped to jsf/login.jsp in welcome-file-list while faces/jsf/login.jsp works just fine?

Here are the contents of web.xml:


P.S.
I wasn't sure if this was the right forum for this question. Let me know if I should ask questions like these else where. Thanks
ym feng
Ranch Hand

Joined: Mar 19, 2009
Posts: 31
you need to specify it with a url path
Joe Kidd
Greenhorn

Joined: Apr 12, 2009
Posts: 6
ym feng wrote:you need to specify it with a url path

What exactly do you mean by that? The following should map /login to jsf/login.jsp which is the correct path for the .jsp file...

 
GeeCON Prague 2014
 
subject: JSF file as welcome-file in web.xml