Ver Fonte

Add the display-name to the web.xml

Luke Taylor há 20 anos atrás
pai
commit
a67b529734

+ 2 - 1
samples/acegifier/src/webapp/WEB-INF/classes/acegi-web.xsl

@@ -61,7 +61,8 @@
     
   <xsl:apply-templates select="filter-mapping"/>
 
-  <xsl:if test="not(./listener/listener-class[string()='org.springframework.web.context.ContextLoaderListener')">
+  <!-- Only add a spring context loader listener if there isn't one there already -->
+  <xsl:if test="not(./listener/listener-class[string()='org.springframework.web.context.ContextLoaderListener'])">
 	<listener>
 		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 	</listener>

+ 1 - 0
samples/acegifier/src/webapp/WEB-INF/web.xml

@@ -4,6 +4,7 @@
          xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
+  <display-name>Acegifier Application</display-name>
 
 	<context-param>
 		<param-name>contextConfigLocation</param-name>