openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1829095 - /openwebbeans/trunk/samples/conversation-sample/src/main/webapp/WEB-INF/web.xml
Date Fri, 13 Apr 2018 19:38:12 GMT
Author: struberg
Date: Fri Apr 13 19:38:11 2018
New Revision: 1829095

URL: http://svn.apache.org/viewvc?rev=1829095&view=rev
Log:
we better map .xhtml and not .jsf

Otherwise someone could download the xhtml sources if file
listing is enabled.
We should not propagate bad practice in samples

Modified:
    openwebbeans/trunk/samples/conversation-sample/src/main/webapp/WEB-INF/web.xml

Modified: openwebbeans/trunk/samples/conversation-sample/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/samples/conversation-sample/src/main/webapp/WEB-INF/web.xml?rev=1829095&r1=1829094&r2=1829095&view=diff
==============================================================================
--- openwebbeans/trunk/samples/conversation-sample/src/main/webapp/WEB-INF/web.xml (original)
+++ openwebbeans/trunk/samples/conversation-sample/src/main/webapp/WEB-INF/web.xml Fri Apr
13 19:38:11 2018
@@ -19,14 +19,10 @@
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     version="2.5">
 
-    <context-param>
-        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
-        <param-value>.xhtml</param-value>
-    </context-param>
-
     <listener>
         <listener-class>
-            org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
+            org.apache.webbeans.servlet.WebBeansConfigurationListener
+        </listener-class>
     </listener>
 
     <servlet>
@@ -37,7 +33,7 @@
 
     <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
-        <url-pattern>*.jsf</url-pattern>
+        <url-pattern>*.xhtml</url-pattern>
     </servlet-mapping>
 
 </web-app>
\ No newline at end of file



Mime
View raw message