2014-06-20 3 views
1

SEAM 2.3.0 (JBoss 7.1)을 사용하여 다음 탐색 로직을 구현하려고합니다 :심 탐색 규칙. 잘못된 URL을 모두 찾아서 404 페이지로 리디렉션

모든 페이지에서 발견하지 못하는 모든 * .xhtml 규칙을 따르고 404.xhtml 오류 페이지로 전달하십시오. 이 같은

뭔가 :

<page view-id="/*.xhtml"> <navigation> <redirect view-id="/404.xhtml" /> </navigation> </page>

하지만 다음 404 페이지 인해 표시하는 잘못 작성된 확장자를 가진 모든 URL에 대한

을 작동하지 않습니다 :

<error-page> <error-code>404</error-code> <location>/404.xhtml</location> </error-page>

web.xml의

미리 감사드립니다.

답변

1

답변을 찾았습니다.

<error-page> 
    <exception-type>java.lang.Throwable</exception-type> 
    <location>/404.xhtml</location> 
</error-page> 
관련 문제