3 Replies Latest reply on Oct 23, 2007 1:47 AM by mnrz

    <exception> doesn't work in pages.xml

    mnrz

      Hi

      though, I put the following tag in pages.xml but when this exception is thrown, the specified message won't be displayed and an unexpected page which is from the browser, is displayed instead.

       <exception class="org.jboss.seam.security.AuthorizationException">
       <redirect>
       <message>#{messages['org.jboss.seam.NotAuthorized']}</message>
       </redirect>
       </exception>
      
      


      the thing is that in exception stack trace the AuthorizationException is not in top of the stack and a ServletException (or something like that) is being seen. is this the source of problem?

      if yes, what do I have to do?

      thanks