Hi, I need to define an error page and configured the \magnoliaPublic\WEB-INF\web.xml like this:
[code] <?xml version="1.0" encoding="UTF-8"?> <web-app 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" version="2.4"> <description>Magnolia</description> <display-name>magnolia</display-name> <distributable/> <filter> <display-name>Magnolia global filters</display-name> <filter-name>magnoliaFilterChain</filter-name> <filter-class>info.magnolia.cms.filters.MgnlMainFilter</filter-class> </filter> <filter-mapping> <filter-name>magnoliaFilterChain</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</dispatcher> </filter-mapping> <listener> <listener-class>info.magnolia.init.MagnoliaServletContextListener</listener-class> </listener> <!-- These are the default paths searched for magnolia configuration. Uncomment if you need to customize these. Your container might also do its own variables substitution here. Tomcat, for instance, allows you to use system properties, such as ${user.home}. --> <!-- <context-param> <param-name>magnolia.initialization.file</param-name> <param-value> WEB-INF/config/${servername}/${contextPath}/magnolia.properties, WEB-INF/config/${servername}/${webapp}/magnolia.properties, WEB-INF/config/${servername}/magnolia.properties, WEB-INF/config/${contextPath}/magnolia.properties, WEB-INF/config/${webapp}/magnolia.properties, WEB-INF/config/default/magnolia.properties, WEB-INF/config/magnolia.properties </param-value> </context-param> --> <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <page-encoding>UTF-8</page-encoding> </jsp-property-group> </jsp-config> <error-page> <error-code>404</error-code> <location>404.html</location> </error-page> </web-app> [/code] I found this document covering this topic: http://wiki.magnolia-cms.com/display/WIKI/How+to+setup+a+custom+404+handler But actually it's not working (Magnolia CE 4.5.2). Do you know why? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=d7d48efd-87ca-4423-bd7b-4d5a9379f531 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
