I guess your welcome.jsp should be /myapp/welcome.jsp
Then, you can get to it via http://yourhost/sample/welcome.jsp Bill On Dec 17, 2007 3:26 PM, Zheng, Xiahong <[EMAIL PROTECTED]> wrote: > I know it must be possible. But I don't seem to be able to get it to > work. It looks like if you use suffix based URL mapping in your web.xmllike > the following > > <servlet-mapping> > <serlvet-name>Faces Servlet</servlet-name> > <url-pattern>*.faces</url-pattern> > </servlet-mapping> > > You URL will have to end up with .faces suffix like /myapp/welcome.faces. > In this case, the suffix will be replaced by .jsp before rendering. I would > like to use path based mapping such as > > <servlet-mapping> > <serlvet-name>Faces Servlet</servlet-name> > <url-pattern>/sample/*</url-pattern> > </servlet-mapping> > > and be able to use URL like /myapp/sample/welcome. However, it does not > work, because in this case, there is no attempt by the framework to add the > default suffix .jsp to the viewId, as a result, I got a 404 resource not > available error. >

