Servlet Mapping in web.xml

Ok, this is the classic servlet mapping for JSF

<servlet-mapping>

<servlet-name>Faces Servlet</servlet-name>

<url-pattern>*.faces</url-pattern>

</servlet-mapping>

so when I type jspPage.faces it displys jspPage.jsp.

But when I type jspPage.jsp, it agains displays this Jsp and I don't want this to happen. Basically I want to stop this, because I have included JSP files with extension jspf and when I type the full name of this jspf in the Browser, it doesn't recognize it as JSP and displays the source code. This is very stupid.

How can I prevent this?

[643 byte] By [cheltsova] at [2007-11-27 2:38:43]
# 1
Two possible solutions comes to mind:1) Map on directory instead of extenion, for example /faces/*2) Create a filter which redirects *.jsp to *.faces
BalusCa at 2007-7-12 3:00:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
the 1) solution will not work in my case. Since I can type /faces/jspFile.jspf and it will again display the insides of the file.I think there must be easier way to forbid access to files with certain extensions through browser.
cheltsova at 2007-7-12 3:00:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...