[jboss-cvs] jboss-seam/examples/contactlist/resources/WEB-INF ...

Gavin King gavin.king at jboss.com
Wed Nov 8 14:58:24 EST 2006


  User: gavin   
  Date: 06/11/08 14:58:24

  Modified:    examples/contactlist/resources/WEB-INF   web.xml
                        exceptions.xml
  Log:
  better exception handling
  
  Revision  Changes    Path
  1.5       +10 -0     jboss-seam/examples/contactlist/resources/WEB-INF/web.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: web.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/contactlist/resources/WEB-INF/web.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- web.xml	2 Nov 2006 18:27:37 -0000	1.4
  +++ web.xml	8 Nov 2006 19:58:24 -0000	1.5
  @@ -26,6 +26,16 @@
           <url-pattern>*.seam</url-pattern>
       </filter-mapping>
   
  +    <filter>
  +        <filter-name>Seam Exception Filter</filter-name>
  +        <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  +    </filter>
  +    
  +    <filter-mapping>
  +        <filter-name>Seam Exception Filter</filter-name>
  +        <url-pattern>*.seam</url-pattern>
  +    </filter-mapping>
  +
       <!-- Facelets -->
   
       <context-param>
  
  
  
  1.2       +4 -0      jboss-seam/examples/contactlist/resources/WEB-INF/exceptions.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: exceptions.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/contactlist/resources/WEB-INF/exceptions.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- exceptions.xml	23 Oct 2006 18:15:17 -0000	1.1
  +++ exceptions.xml	8 Nov 2006 19:58:24 -0000	1.2
  @@ -5,6 +5,10 @@
         <end-conversation/>
      </exception>
      
  +   <exception class="org.jboss.seam.framework.EntityNotFoundException">
  +      <http-error code="404"/>
  +   </exception>
  +   
      <exception>
         <redirect view-id="/search.xhtml">Unexpected failure</redirect>
         <end-conversation/>
  
  
  



More information about the jboss-cvs-commits mailing list