FacesServlet mapping best practices?

hi

what kinds of approaches are people using for the FacesServlet mapping configuration?

the two approaches i've seen are

a) *.faces

b) /faces/*

solution a would seem like the better one because then it's easier to control access to pages (based on url prefixes).

what's the most commonly used way to do this mapping?

[364 byte] By [aspaa] at [2007-10-2 16:37:57]
# 1

Hi,

1.*.faces

If u r using *.faces then ur URL has to be http://localhost:8080/login/index.faces.

The servlet container uses servlet mapping rule to activate the JSf servlet which strips off faces suffix and loads the index.jsp page.

2./faces/*

In this case u should use http://localhost:8080/login/faces/index.faces.

The URl activates JSF servlet which strips off the faces prefix and loads the file /login/index.jsp.

The better way is to use *.faces.

Thanks,

Sonara.

sonara_rahul_2004@yahoo.coma at 2007-7-13 17:45:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

1.*.faces

If u r using *.faces then ur URL has to be http://localhost:8080/login/index.faces.

The servlet container uses servlet mapping rule to activate the JSf servlet which strips off faces suffix and loads the index.jsp page.

2./faces/*

In this case u should use http://localhost:8080/login/faces/index.jsp.

The URl activates JSF servlet which strips off the faces prefix and loads the file /login/index.jsp.

The better way is to use *.faces.

Thanks,

Sonara.

sonara_rahul_2004@yahoo.coma at 2007-7-13 17:45:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hi,The second URL is http://localhost:8080/login/faces/index.jsp.Thanks,Sonara.
sonara_rahul_2004@yahoo.coma at 2007-7-13 17:45:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...