I don't know JSF so perhaps this is a stupid option, but can't you put the
index.xhtml in the WEB-INF directory. If not, you could map in web.xml a jsp
or servlet to index.xhtml that returns a 404.

On Tue, Nov 23, 2010 at 12:39 AM, Matthew <[email protected]> wrote:

> Hello
>
> I have JSF 2 configured on my app with a servlet-mapping
> of <url-pattern>/faces/*</url-pattern> which renders correctly if I go to
> URL's such as domain.com/faces/index.xhtml.
>
> If I access the xhtml file URL directly, for example
> domain.com/index.xhtml, the xhtml source code is returned to the browser.
> How can I stop this happening yet still render correctly when using the
> mapping directory.
>
> Many thanks in advance.
>
> Matthew
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to